Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20149

iOS Ti.Geolocation.requestLocationPermissions callback is not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: Release 5.1.1
    • Fix Version/s: Release 5.1.2
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS simulator 9.2
      iOS device 9.1
      xcode 7
      Titanium SDK 5.1.1GA

      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
      1. Create a new Alloy Project
      2. Open the tiapp.xml file and add the next lines inside ios>plist>dict

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

      3. 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));
        });
        

      4. Run the app.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cng Chee Kiat Ng (Inactive)
                Reporter:
                rramirez Ricardo Ramirez
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20789
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration