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

Android: Geolocation is not turning on in Webview

    Details

    • Type: Bug
    • Status: In Review
    • Priority: High
    • Resolution: Unresolved
    • Affects Version/s: Release 3.2.2, Release 3.2.3, Release 3.3.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Mobile SDK 3.3.0.beta
      Mobile SDK 3.2.3
      Mobile SDK 3.2.2
      Android 4.4.2
      Device: Moto X

    • Story Points:
      5

      Description

      Problem Description

      The geolocation bug which used to exist in version 3.0.0 (TIMOB-4982) has been reintroduced in version 3.2.0 The last working good version is 3.1.3. .

      Test Case

      1. Create a new mobile project (classic)
      2. Paste this to app.js
      3.

      //var URL="http://maps.google.com/maps?saddr=39.745740, -104.985757&daddr=39.740368, -104.981938";
      var URL = "http://maps.google.com";
      var tWebView = Ti.UI.createWebView({
      	url:URL,
      	top:0, 
      	left:0,
      });
       
      var WWWwindow = Titanium.UI.createWindow({
      	backgroundColor:'#E0E0E0',
      	navBarHidden:true}
      );
      WWWwindow.add(tWebView);
      WWWwindow.open();


      4. The map never ask for permission for the GPS access, not even if the user presses the location icon google will briefly flash "Location could not be identified"

      Extra information

      Use case:
      When we open a html5 page that as a geolocation titanium does not give access to GPS on the device.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rramesh1 Ramesh RAMAMURTHY
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

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

                    Git Source Code