apache / cordova

Apache Cordova
https://cordova.apache.org/
584 stars 61 forks source link

Geolocation getCurrentPosition is not working in some Android 12 devices #352

Closed mhnimje closed 1 year ago

mhnimje commented 1 year ago

Bug Report

Problem

  1. Use Geolocation getCurrentPosition method - https://cordova.apache.org/docs/en/1.8.1/cordova/geolocation/geolocation.getCurrentPosition.html
  2. Add options - enableHighAccuracy: true, maximumAge: xxxxx, timeout: xxxxx
  3. It gives error after timeout. Even after setting large timeout it still gives error
  4. Till yesterday it was working fine
  5. Issue is happening on variety of devices having Android 12

What is expected to happen?

What does actually happen?

Geolocation getCurrentPosition is not working in some Android 12 devices giving timeout issue

Information

Command or Code

Environment, Platform, Device

Android 12

Version information

Checklist

breautek commented 1 year ago

Duplicate: https://github.com/apache/cordova-plugin-geolocation/issues/255

See: https://github.com/apache/cordova-plugin-geolocation/issues/255#issuecomment-1322124399