[AC-6369] iOS: Ti.Geolocation.requestLocationPermissions doesn't fire given callback on 8.1.0+
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-12-30T09:20:04.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | 8.1.0.GA, 8.1.1.GA, geolocation |
Reporter | Andrea Vitale |
Assignee | Motiur Rahman |
Created | 2019-09-17T16:20:40.000+0000 |
Updated | 2020-01-14T18:10:04.000+0000 |
Description
When using
Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE, event => Ti.API.info(event))
the given callback is never fired on Ti SDK 8.1.0.GA and 8.1.1.GA. The same code on Ti SDK 8.0.0.GA works as expected.
It's working fine for me with 8.1.0.GA. Is there any particular iOS version? I assume you have added key "NSLocationWhenInUseUsageDescription" in tiapp.xml.
Hello [~Andrea.Vitale], Can you please follow up here on Vijay's comment? Let us know the status of your issue. Thanks.
Hi [~Andrea.Vitale], We have tested this issue in real device and failed to reproduce this issue. Ti.Geolocation.requestLocationPermissions has fired and returned the callback function. Make sure in your tiapp.xml ios / plist / dict section you have added these below:
I've tried these below code in app/controllers/index.js file:
Environment details:
Guys I have this inside my tiapp.xml
and here is the permissions request function:
This is in a REAL app and sometimes works and sometimes it doesn't. Log message "Got response..." isn't printed out and the promise isn't resolved or rejected.