Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2522] iOS7: geolocation does not trigger location events while in background

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-01-19T08:49:24.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsbackgroundservice, gps, ios, location
Reporterjohn adamis
AssigneeShak Hossain
Created2014-01-14T16:32:46.000+0000
Updated2016-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.

Comments

  1. Ritu Agrawal 2014-01-15

    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.

JSON Source