config.xml mentioned in PhoneGaps documentation

14 posts, 0 answers
  1. Henrik
    Henrik avatar
    23 posts
    Member since:
    Jan 2013

    Posted 20 Feb 2013 Link to this post

    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!

















  2. Jan-Dirk
    Jan-Dirk avatar
    327 posts
    Member since:
    Jun 2012

    Posted 20 Feb 2013 Link to this post

    You don't need it with Icenium.
  3. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 20 Feb 2013 Link to this post

    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.
  4. Henrik
    Henrik avatar
    23 posts
    Member since:
    Jan 2013

    Posted 20 Feb 2013 Link to this post

    Ok, thank you!
  5. TimmyTooTall
    TimmyTooTall avatar
    5 posts
    Member since:
    Oct 2012

    Posted 13 Mar 2013 Link to this post

    So given that you don't need it, how to you address things like the "stay-in-webview" preference for iOS?
  6. Yavor Georgiev
    Admin
    Yavor Georgiev avatar
    982 posts

    Posted 13 Mar 2013 Link to this post

    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.
  7. BLE
    BLE avatar
    46 posts
    Member since:
    Sep 2012

    Posted 25 Apr 2013 Link to this post

    +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
  8. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Jul 2013 Link to this post

    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.
  9. BLE
    BLE avatar
    46 posts
    Member since:
    Sep 2012

    Posted 10 Jul 2013 Link to this post

    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  :(
  10. BLE
    BLE avatar
    46 posts
    Member since:
    Sep 2012

    Posted 11 Jul 2013 Link to this post

    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
  11. BLE
    BLE avatar
    46 posts
    Member since:
    Sep 2012

    Posted 11 Jul 2013 Link to this post

    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!
  12. William
    William avatar
    7 posts
    Member since:
    Mar 2014

    Posted 16 Apr 2014 Link to this post

    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">


  13. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 18 Apr 2014 Link to this post

    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!

     
  14. BLE
    BLE avatar
    46 posts
    Member since:
    Sep 2012

    Posted 18 Apr 2014 in reply to William Link to this post

    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"
Back to Top