iOS disable multi-tasking

3 posts, 0 answers
  1. Mathias
    Mathias avatar
    4 posts
    Member since:
    Sep 2012

    Posted 07 May 2013 Link to this post

    I'm building an iPhone app which uses the Cordova geolocation functionality. In particular I'm using the watchPosition to continously track the device's position which works quite well. The problem I've encountered is when the app is paused, e.g. when the "Lock"-button is pressed. This causes the tracking to stop. 

    When reading through Cordova's docs I found this: "Under iOS 5, if you want your app to still run when the device is locked, you will have to disable multi-tasking (UIApplicationExitsOnSuspend - YES) for your app."

    http://docs.phonegap.com/en/2.4.0/cordova_events_events.md.html#pause

    Is this setting possible to change in Icenium? 

    Thanks in advance


  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 May 2013 Link to this post

    Hello Mathias,

    There is an option for iOS in the Info.plist that you can specify and declare that your app needs to receive location change notifications in the background. We would expose the background settings for iOS in our upcoming release scheduled for this week.

    The other iOS dependent setting you mention is not exposed and has to be manually added to the Info.plist, which Icenium currently does not expose for direct editing. We plan to expose this configuration file in one of our next updates of the product. For the time being, you can download the .ipa file generated from the Icenium build and following the instructions in this stackoverflow thread, re-sign the application after you manually modify the Info.plist.

    All the best,
    Steve
    the Telerik team

    Share feedback and vote for features on our Feedback Portal.
    Want some Kendo UI online training - head over to Kendo UI Dojo.
  3. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 05 Jul 2013 Link to this post

    Hello Mathias,

    This is just a follow uo to let you know we've added background modes (including location) for iOS in Icenium 1.5 and they can be set through the project properties.
    What's more since v.1.6 we've given you full control by adding the ability to make configuration changes to your app by modifying the respective Info.plist and config.xml for iOS and AndroidManifest.xml and config.xml for Android directly in the Icenium code editor. For more information, see Edit Configuration Files.

    Thank you for trying out Icenium!

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