Problem description
iOS: UIBackgroundModes key is not added to info.plist even after specifying backgroundModes in tiapp.xml. This does not prevent the app being suspended and Garbage Collector ends up killing the GPS
Steps to reproduce
In order to use the Geolocation when the app is backgrounded, following lines are added to tiapp.xml:
<backgroundModes>
<mode>location</mode>
</backgroundModes>
<requires>
<feature>gps</feature>
<feature>location-services</feature>
</requires>
However after building, key UIBackgroundModes is not added to the info.plist
In particular, info.plist should include those lines:
<key>UIBackgroundModes</key>
<array>
<string>location</string>
</array>
Without adding those lines, the app is being suspended after 10 minutes and the garbage collector kills the GPS.
Additional info
Ticket reference:
http://support-admin.appcelerator.com/display/APP-954912/conversation/read_all
No comments