[AC-2522] iOS7: geolocation does not trigger location events while in background
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-01-19T08:49:24.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | backgroundservice, gps, ios, location |
Reporter | john adamis |
Assignee | Shak Hossain |
Created | 2014-01-14T16:32:46.000+0000 |
Updated | 2016-03-08T07:41:35.000+0000 |
Description
I know than on Ios7 it is no longer possible to add a location event in a background service. I had an app working this way on ios6. This would not be an issue if location event worked like android, meaning that even though event listener is added on foreground, it is still triggered while on background.But this is not happening with titanium on ios7, when app is on background no location event triggered either on foreground or background code. This makes it impossible to track location data while on the background. If this could work i could implement a solution like the following for Ios:
http://gooddevbaddev.wordpress.com/2013/10/22/ios-7-running-location-based-apps-in-the-background/
I know this is not the best approach but would at least be a solution.
This is a great question but more suited for Q&A forum. You are more likely to get community feedback there so I would suggest you to post this question there.