[
https://issues.apache.org/jira/browse/CB-8581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381779#comment-14381779
]
Ibrahim M. Ghazal commented on CB-8581:
---------------------------------------
Some notes I gathered which might be useful:
- This is definitely a bug in Chrome/Webview. Version 0.3.6 of the geolocation
plugin does work in Restricted Profiles because it calls the Java geolocation
API instead of using the Chrome/Webview implementation.
- I wrote a simple native Java application to confirm. The GPS provider works
in Restricted Profiles. The "network" provider does not.
- The proprietary Google Play Location API (
[https://developer.android.com/google/play-services/location.html] ) works
without a problem in Restricted Profiles.
- I ended up using
[http://plugins.cordova.io/#/package/fr.louisbl.cordova.locationservices] for
my project because running in Restricted Profiles was a requirement for my
project.
> Geolocation plugin doesn't work in Restricted Profile on Android
> ----------------------------------------------------------------
>
> Key: CB-8581
> URL: https://issues.apache.org/jira/browse/CB-8581
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, Docs, Plugin Geolocation
> Affects Versions: 4.1.3
> Environment: Android 4.4
> "Restricted Profile"
> Samsung Galaxy Tab 3 7.0 3G (SM-T211) and Samsung Galaxy Tab 4 7.0 3G
> (SM-T231).
> Reporter: Ibrahim M. Ghazal
> Assignee: Joe Bowser
>
> Android 4.3 has a "Restricted Profile" feature (
> https://support.google.com/nexus/answer/3175031?hl=en ), that restricts a
> user to a limited subset of apps.
> When a Cordova application is run under a Restricted Profile, geolocation
> functions (both navigator.geolocation.getCurrentPosition and
> navigator.geolocation.watchPosition ) always time out.
> I tried changing the Android Location settings, but nothing seems to fix it.
> Tried on two devices with the same results: Samsung Galaxy Tab 3 7.0 3G
> (SM-T211) and on Samsung Galaxy Tab 4 7.0 3G (SM-T231).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]