You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Corneel den Hartogh (JIRA)" <ji...@apache.org> on 2018/03/14 09:10:00 UTC

[jira] [Commented] (CB-13968) Geolocation doesn't work bij default on Android

    [ https://issues.apache.org/jira/browse/CB-13968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16398303#comment-16398303 ] 

Corneel den Hartogh commented on CB-13968:
------------------------------------------

Thanks for the quick response. Let me be more clear:

I'm using the cordova inappbrowser to go to an url with a map: maps.amsterdam/vastgoeddata. There is a location-button, outside of my control, but this is a default of ESRI ArcGIS which is used extensively.

When I'm using this in Android lower than 6, my app has already permissions and the location is found, when I go this url on newer versions of Android with another browser (Chrome) this browser has permissions and it works. When I manually put the permission to 'on' for this app it is working within the inAppbBrowser.

On iOS, within the inAppBrowser, I had to edit the plst file (based on geolocation-readme) and within the inAppBrowser I get a pop-up asking for permission to access location. After confirmation it works. 

--

"It's possible that your browser isn't able to get a location"

So it seems that the inAppBrowser on Android is not able to ask for this permission? Cause when permissions is granted beforehand, it does work. Could anyone say if this is correct?

If so, is there a workaround to make sure the app aks for geolocation permission when installed? Or when started? Other apps do seem able to get permissions before they are loaded or triggered by buttons.

 

 

 

 

> Geolocation doesn't work bij default on Android
> -----------------------------------------------
>
>                 Key: CB-13968
>                 URL: https://issues.apache.org/jira/browse/CB-13968
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: cordova-android-7.0.0
>            Reporter: Corneel den Hartogh
>            Assignee: Joe Bowser
>            Priority: Major
>
> I use the cordova geolocation plugin, but from Android 6.0 (with introduction of App Permissions) this is no longer working). My app does pop-up in the app permission list, but when I click on the 'get current position'-button in the app no permission request is send out. When I manually go to app permissions and toggle the switch to on, the button in the app works. 
> On [https://github.com/apache/cordova-plugin-geolocation] I see some iOS Quirks that help to make it work on iOS, what should I do to make it work on Android?
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org