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

Windows: Ti.Geolocation does not prompt location permission

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 5.3.0
    • Fix Version/s: Release 5.3.0
    • Component/s: Windows
    • Labels:
      None
    • Story Points:
      5
    • Sprint:
      2016 Sprint 10 SDK

      Description

      Harry Bryant reported there's no prompt to ask for location permission on Windows 10 Mobile.

      var win = Ti.UI.createWindow({ backgroundColor: 'green' });
      var label = Ti.UI.createLabel({
          color: "blue",
          text: "Get Current Position"
      });
       
      win.add(label);
       
      label.addEventListener('click', function () {
          if (Ti.Geolocation.locationServicesAuthorization == Ti.Geolocation.AUTHORIZATION_DENIED) {
              Ti.API.info('Location request has been denied');
              return;
          } else {
              Ti.API.info('Location request has been granted');
          }
          Ti.Geolocation.getCurrentPosition(function (e) {
              Ti.API.info(JSON.stringify(e.coords));
          });
      });
       
      Ti.Geolocation.addEventListener("location", function (e) {
          Ti.API.info(JSON.stringify(e.coords));
      });
       
      win.addEventListener('open', function () {
          Ti.API.info('Ti.Geolocation.locationServicesEnabled: ' + Ti.Geolocation.locationServicesEnabled);
      });
       
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              kiguchi Kota Iguchi
              Reviewer:
              Gary Mathews
              Tester:
              Harry Bryant
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • It looks like Backbone Issue Sync is not enabled for your project.

                  Git Source Code