This is a migrated thread and some comments may be shown as answers.
config.xml mentioned in PhoneGaps documentation
13 Answers 198 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Henrik
Top achievements
Rank 1
Henrik asked on 20 Feb 2013, 09:30 AM
Hi!

We are developing with Icenium Graphite, using Kendo mobile and Cordova, our target platforms are iPhone 4-5 and we are running ION on those devices to test the App.

In the Cordova API, we have worked with: Camera, Geolocation and Accelerometer - these functions seem to work pretty well so far. What confuses me a bit is that in the Cordova documentation there are many times notes about settings in a 'config.xml' file (plugin name value). Where is that file in my project? It seems I dont have it? Do I need it? 

Thanks!

















13 Answers, 1 is accepted

Sort by
0
Jan-Dirk
Top achievements
Rank 1
answered on 20 Feb 2013, 10:05 AM
You don't need it with Icenium.
0
Yavor Georgiev
Telerik team
answered on 20 Feb 2013, 11:29 AM
Hello Henrik,

 As Jan-Dirk said, you don't need config.xml when building a Cordova app with Icenium, but we're evaluating whether to add support for it in order to be more compatible with Cordova's docs and best practices.

Kind regards,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Henrik
Top achievements
Rank 1
answered on 20 Feb 2013, 02:14 PM
Ok, thank you!
0
TimmyTooTall
Top achievements
Rank 1
answered on 13 Mar 2013, 02:04 PM
So given that you don't need it, how to you address things like the "stay-in-webview" preference for iOS?
0
Yavor Georgiev
Telerik team
answered on 13 Mar 2013, 02:23 PM
Hi Timothy,

 Even though Cordova for iOS supports this preference, we don't expose a way to set it. The config.xml file favored by PhoneGap Build is such a way, but as I mentioned earlier in this thread our build process doesn't rely on config.xml.

 We're looking into ways to expose those extra platform-specific Cordova preferences that are set at build-time, whether in a configuration file (XML, JSON, etc.) or a UI like Xcode's PLIST visualizer/editor, but right now we don't support setting any such properties.

 I can't commit on a timeframe for this feature, as we're still evaluating upstream Cordova's changes to their preference system and config.xml format. As soon as things stabilize a bit and they stop changing the way preferences are set between each release, we'll introduce a way to change those properties.

Greetings,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
BLE
Top achievements
Rank 1
answered on 25 Apr 2013, 06:44 PM
+1 vote

It seems I can't enable pinch & zoom without setting the "EnableViewportScale" preference to TRUE in the plist/config.xml file: http://hype.desk.com/customer/portal/questions/588156-scaling-to-fit-for-iphone-screen-in-phonegap-cordova-quick-and-easy
0
Steve
Telerik team
answered on 05 Jul 2013, 04:02 PM
Hi guys,

This is a follow up to let you know that in Icenium 1.6 we've given you full control over your app by adding the ability to make configuration changes to your app by modifying the Info.plist and config.xml for iOS (and AndroidManifest.xml and config.xml for Android respectively) directly in the Icenium code editor. For more information, see Edit Configuration Files.

Regards,
Steve
Telerik

Looking for tips & tricks directly from the Icenium team? Check out our blog!
Missed our first webinar, watch it here.
Share feedback and vote for features on our Feedback Portal.
0
BLE
Top achievements
Rank 1
answered on 11 Jul 2013, 12:08 AM
Anyone else get this to work?  I put <preference name="EnableViewportScale" value="true" /> into Edit Configuration > Android Config.xml and added <meta name="viewport" content="initial-scale=1.0, user-scalable=yes"> in my index.html file.  I then uninstalled the app from my Android Nexus 7 device and redeployed via Graphite.  Still no pinch and zoom  :(
0
BLE
Top achievements
Rank 1
answered on 11 Jul 2013, 08:21 PM
Partial good news: I was able to get this to work on the iPhone and iPad by changing the existing EnableViewportScale preferene value to true in "Edit Configuration > iOS Config.xml", adding the meta tag mentioned in my previous post, uninstalling the app from the devices and re-deploying (native deploy is required since the Icenium simulator and Icencium Ion tools don't support the config.xml edits).

...I'll keep hacking away at my stubborn Nexus 7 and post any updates
0
BLE
Top achievements
Rank 1
answered on 11 Jul 2013, 11:17 PM
It turns out iOS supports EnableViewportScale (http://docs.phonegap.com/en/2.7.0/guide_project-settings_ios_index.md.html#Project%20Settings%20for%20iOS) but Android does not (http://docs.phonegap.com/en/2.7.0/guide_project-settings_android_index.md.html#Project%20Settings%20for%20Android).  

At least my iOS apps are now accessible to the sight-impaired.  Thanks Icenium Team!
0
William
Top achievements
Rank 1
answered on 16 Apr 2014, 09:07 AM
Hi BLE,

may I know what was the setup you used to make EnableViewportScale to work?
did you use any markup at the div?
thanks in advance for any help!

my setup is as follows:
cordova 3.2.0
jquery-1.9.1.min.js
jquery.mobile-1.3.1.min.js

<preference name="EnableViewportScale" value="true" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=yes">


0
Zdravko
Telerik team
answered on 18 Apr 2014, 01:56 PM
Hello William,

As you can see from Ben's latest post there is a setting for iOS that you have to turn on and add the meta tag below.
The Android doesn't have explicit setting so it should be fine after you add <meta name="viewport" content="initial-scale=1.0, user-scalable=yes"> to your html head.

Following this link you can find more on the matter.
Thanks.

Regards,
Zdravko
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
0
BLE
Top achievements
Rank 1
answered on 18 Apr 2014, 08:02 PM
In your index.html file:
 
<!-- http://davidbcalhoun.com/2010/viewport-metatag -->
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

In Icenium/AppBuilder:

Change the existing EnableViewportScale preference value to true in "Edit Configuration > iOS Config.xml"
Tags
AppBuilder Windows client
Asked by
Henrik
Top achievements
Rank 1
Answers by
Jan-Dirk
Top achievements
Rank 1
Yavor Georgiev
Telerik team
Henrik
Top achievements
Rank 1
TimmyTooTall
Top achievements
Rank 1
BLE
Top achievements
Rank 1
Steve
Telerik team
William
Top achievements
Rank 1
Zdravko
Telerik team
Share this question
or