Project: titanium
Issue TIMOB-20002: iOS: Ti.Geolocation.requestLocationPermissions is not always called?
Both on device and in Simulator I can't get the callback for {{requestLocationPermissions}} in the following code to be called, even though - the first time - the dialog requesting permission *is* displayed. Which is weird, because in the [Ti 5.1.0 Sample App|https://github.com/appcelerator-developer-relations/appc-sample-ti510] it does call and is implemented in the exact same way. Removing everything in the button event listener except the request call doesn't change it either. {code:javascript} var win = Ti.UI.createWindow({	backgroundColor: 'white' }); var btn = Ti.UI.createButton({	title: 'Request Permissions' }); btn.addEventListener('click', function(e) {	Ti.API.info('Before Callback');	Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_ALWAYS, function(e) {	Ti.API.info('In Callback');	Ti.API.info(JSON.stringify(e, null, 2));	}); }); win.add(btn); win.open(); {code} *Notes:* * Don't forget to add {{NSLocationAlwaysUsageDescriptionDeny or grant permission to test different scenarios.}} to the {{tiapp.xml}} or use the attached project. * For a clean slate either change the app id, reset the Simulator or just _Settings > General > Reset > Reset Location & Privacy_.
Story points: 3