You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/10/18 09:36:58 UTC
[GitHub] [cordova-plugin-geolocation] dpa99c commented on a diff in pull request #250: (android) fix: respect requested location accuracy on Android 12+
dpa99c commented on code in PR #250:
URL: https://github.com/apache/cordova-plugin-geolocation/pull/250#discussion_r997966517
##########
www/android/geolocation.js:
##########
@@ -29,7 +29,12 @@ var pluginToNativeWatchMap = {};
module.exports = {
getCurrentPosition: function (success, error, args) {
- var win = function () {
+ var win = function (deviceApiLevel) {
+ // Workaround for bug specific to API 31 where requesting `enableHighAccuracy: false` results in TIMEOUT error.
+ if (deviceApiLevel === 31) {
Review Comment:
This is a bug specific to API 31 (<31 there was no distinguishing approx vs precise location, >=32 it has been fixed) - see above PR description for details
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org