Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20149] iOS Ti.Geolocation.requestLocationPermissions callback is not working

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionDuplicate
Resolution Date2015-12-16T02:06:32.000+0000
Affected Version/sRelease 5.1.1
Fix Version/sRelease 5.1.2
ComponentsiOS
Labelsios, location
Reporter Ricardo Ramirez
AssigneeChee Kiat Ng
Created2015-12-15T22:16:01.000+0000
Updated2015-12-17T18:26:09.000+0000

Description

Issue Description

The requestLocationPermissions function callback is not working.
Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE

Expected behavior

The user should receive an alert with the response callback info.

Steps to reproduce

Create a new Alloy Project

Open the tiapp.xml file and add the next lines inside ios>plist>dict

		<key>NSLocationWhenInUseUsageDescription</key>
                <string>Testing Location in use </string>                

Open app>controllers>index.js and add the next lines at the bottom:

Ti.Geolocation.requestLocationPermissions(Ti.Geolocation.AUTHORIZATION_WHEN_IN_USE, function(resp){
	alert(JSON.stringify(resp));
});

Run the app.

Comments

  1. Chee Kiat Ng 2015-12-16

  2. Eric Wieber 2015-12-17

    Closing as duplicate

JSON Source