Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6402] IOS Geolocation module stops receiving location updates after a while

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2019-12-23T14:53:40.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsgeolocation, ios, ios-13
ReporterXavier Alfeiran
AssigneeFazlul Haque
Created2019-10-10T22:31:53.000+0000
Updated2019-12-23T14:53:40.000+0000

Description

Since Titanium SDK 8.1.1 and 8.2.0 Geolocation updte events stops receiving updates after a few seconds. This happens both in device and simulator, even when app is in foreground. Sample code: _+Permissions for geolocation have been requested+_
Ti.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST;
Ti.Geolocation.distanceFilter = 0;

Ti.Geolocation.addEventListener('location', function(e){
	Ti.API.info(JSON.stringify(e.coords));
});
After a few cycles of updates, location event stops been called. I have a Ti.Map on app screen, and user location shows movement as expected. This issue happened with iOS 12 and Titanium SDK 8.2.0GA but It solved when using SDK 8.0.1 (now not available since iOS 13 and Xcode 11)

Comments

  1. Xavier Alfeiran 2019-10-10

  2. Xavier Alfeiran 2019-11-13

    Any news on this?
  3. Xavier Alfeiran 2019-12-02

    Ok, I didn't see any reference about the location module being touched in release 8.3.0 of Titanium SDK, but the issue was fixed now. Thanks!
  4. Fazlul Haque 2019-12-23

    [~xalfeiran], Thanks for the information. If you have any others issue feel free to raise a new ticket.

JSON Source