-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
!important Android 12 new approximate location and precise location #235
Comments
I believe this plugin is already compatible. It seems like if you request
The reason why I believe this plugin is already compatible is because we old an array containing both of these permissions here:
And when requesting: cordova-plugin-geolocation/src/android/Geolocation.java Lines 100 to 103 in 8be9229
OR cordova-plugin-geolocation/src/android/Geolocation.java Lines 49 to 57 in 8be9229
However, the issue with coarse only not working is probably due to the fact that it appears that if any of the requested permissions are denied, then we treat the entire prompt as a denial: cordova-plugin-geolocation/src/android/Geolocation.java Lines 64 to 82 in 8be9229
This is obviously problematic. I think it should only throw an error if |
@breautek Thanks for the observation I already try to debugging the code but |
I think the plugin behavior should be changed to consider that the permission has been granted if on Android 12 and only coarse permission was granted, or at least if But sadly there is a bug on the WebView that still won't get location in some cases even if we consider it as granted |
This is now resolved by merging of PR #250 |
Feature Request
precise location work expectedly but when user select approximate location got error
Motivation Behind Feature
should solve current position coords.
It will requested both permission :
Screenshot: 1 user need to choose approximate location or precise location from popup
Screenshot: 2 expected behaviour only view precise location popup
Feature Description
Android BETA change log:
https://developer.android.com/about/versions/12/approximate-location#user-choice-approximate-precise
Alternatives or Workarounds
Not found workaround yet but observe some points:
New location changes might need fixes from both ts and plugin side
Plugin Changes : Handle Fine location not requested, send a new message
TS Changes : Handle this updated message from plugin
The text was updated successfully, but these errors were encountered: