You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on("location") and getCurrentLocation don't work. Calling getCurrentLocation with timeout works though. Maybe there is a timeout issue in default location tracking that does not fire. Also in case of adding post url, nothing happened and no request is made. All access have been granted and even the notification is showing.
New updates:
getCurrentLocation works with enableHighAccuracy but it has about 5 seconds delay. Auto update and background still does not work.
Expected Behavior
Work as it works on android 11 and lower.
Actual Behavior
Does nothing. Even getCurrentLocation does not work until specifying timeout
Possible Fix
Maybe there is a timeout in default config that has a problem?
Steps to Reproduce
Install library on Ionic 6 application.
Get access to coarse and fine locations and then background location.
Call start
Nothing happens!
Call getCurrentLocation
Nothing happens!
Call getCurrentLocation({timeout:1000})
Returns location
Context
My application uses background location
Debug logs
The text was updated successfully, but these errors were encountered:
pouriamoosavi
changed the title
Forground and background issues in API 31 Android 12 and above
Forground and background issues in API 31 Android 12 emulator
Mar 13, 2022
pouriamoosavi
changed the title
Forground and background issues in API 31 Android 12 emulator
Forground and background issues in API 31-32 Android 12 emulator
Mar 13, 2022
Hi, on 05.10.2022 I have seen the same error on the emulator. Some people have clone this repository and seems that they fixed it by using another plugin (f.e. https://github.com/HaylLtd/cordova-background-geolocation-plugin/) as seen in issue #770. But it would be nice if this one actually gets fixed.
Your Environment
cordova -v
): No cordova. Ionic/angular 6, Capacitor 3.3.4cordova platform ls
):Context
on("location")
andgetCurrentLocation
don't work. CallinggetCurrentLocation
with timeout works though. Maybe there is a timeout issue in default location tracking that does not fire. Also in case of adding post url, nothing happened and no request is made. All access have been granted and even the notification is showing.New updates:
getCurrentLocation
works withenableHighAccuracy
but it has about 5 seconds delay. Auto update and background still does not work.Expected Behavior
Work as it works on android 11 and lower.
Actual Behavior
Does nothing. Even
getCurrentLocation
does not work until specifyingtimeout
Possible Fix
Maybe there is a
timeout
in default config that has a problem?Steps to Reproduce
coarse
andfine
locations and thenbackground
location.start
getCurrentLocation
getCurrentLocation({timeout:1000})
Context
My application uses background location
Debug logs
The text was updated successfully, but these errors were encountered: