Hey all,
I am evaluating platforms for a new project (coming from Unity, and looking for something more geared for 2D), and I can't seem to find an answer to this question: Is it possible to do background geolocation on ios and android with Gideros. If it's not possible out of the box, is the plugin support robust enough for me to write my own plugin to handle this?
Thanks,
Jacob
Comments
https://sites.google.com/site/xraystudiogame
http://docs.giderosmobile.com/reference/gideros/Geolocation#Geolocation
Only for using maps you would need a plugin, but plugin system is quite extendable and I think you could achieve what you need
When app goes to background all received events are queued, and those queued events are dispatched when app comes back to foreground.
So if it satisfies your needs (to process event data when app comes to foreground) you may try to achieve what you need.
e.g. see http://www.mindsizzlers.com/2011/07/ios-background-location/
and http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html
"If your app needs location updates delivered whether the app is in the foreground or background, there are multiple options for doing so. The preferred option is to use the significant location change service to wake your app at appropriate times to handle new events. However, if your app needs to use the standard location service, you can declare your app as needing background location services.
An app should request background location services only if the absence of those services would impair its ability to operate. In addition, any app that requests background location services should use those services to provide a tangible benefit to the user. For example, a turn-by-turn navigation app would be a likely candidate for background location services because of its need to track the user’s position and report when it is time to make the next turn."
^^ that being said, apps like Dropbox explicitly use this as a hack to do background file syncing and Apple approved it, so the 'tangible benefit' may not even need to be location specific.
Instead they will be queued and processed when app come back.
So for example if you would like to be notified while going near someplace, this is not suitable, you would have to hard code the checking coordinates in background plugin in the native way to make it work.