[AC-6402] IOS Geolocation module stops receiving location updates after a while
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2019-12-23T14:53:40.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | geolocation, ios, ios-13 |
Reporter | Xavier Alfeiran |
Assignee | Fazlul Haque |
Created | 2019-10-10T22:31:53.000+0000 |
Updated | 2019-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)
Any news on this?
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!
[~xalfeiran], Thanks for the information. If you have any others issue feel free to raise a new ticket.