capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
177 stars 54 forks source link

Plugin stopped sending location #88

Closed ivinantony closed 1 year ago

ivinantony commented 1 year ago

Describe the bug The plugin was working fine for me.but now a days it only sent at the initial time after it doesn't give any location To Reproduce Steps to reproduce the behavior: Install the plugin with latest capacitor and run the project Expected behavior Need to work continuously. Is it due to the latest capacitor version?

jamesdiacono commented 1 year ago

Are you experiencing this problem when the app is in the foreground, background or both? What device and operating system are you using? What version of the plugin & Capacitor are you using?

ivinantony commented 1 year ago

In both. I tested in a new project as well but not working. Anybody having the issue?? It sent location at first time🥺

diachedelic commented 1 year ago

Please try running the app in the example/ directory and let me know what happens.

ivinantony commented 1 year ago

sure i will check and let you know

ivinantony commented 1 year ago

same here. the fist time it gives the location after there is no updates. and there is no error too

ivinantony commented 1 year ago

2023-02-01 11:54:28.512101+0530 App[8459:2405287] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2023-02-01 11:54:28.512182+0530 App[8459:2405287] [SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)") 2023-02-01 11:54:28.733926+0530 App[8459:2405287] KeyboardPlugin: resize mode - native ⚡️ Loading app at capacitor://localhost... 2023-02-01 11:54:28.898795+0530 App[8459:2405287] [Sandbox] Could not enable Mach bootstrap, errno = 1. 2023-02-01 11:54:28.898868+0530 App[8459:2405287] [Sandbox] Could not enable Mach bootstrap, errno = 1. ⚡️ WebView loaded ⚡️ To Native -> App addListener 23724426 ⚡️ To Native -> BackgroundGeolocation addWatcher 23724427 2023-02-01 11:54:39.429175+0530 App[8459:2405287] [Accessibility] WKContentView[@] set up: @ pid: @ MACH_PORT 25412608 ⚡️ TO JS {"longitude":75.542713801786633,"simulated":false,"altitudeAccuracy":25.629905700683594,"speed":null,"accuracy":8.6939967608949278,"altitude":198.73445129394531,"time":1675232679442,"latitude":12.125589638800754,"bearing":null} ⚡️ [log] - loaction {"longitude":75.54271380178663,"simulated":false,"altitudeAccuracy":25.629905700683594,"speed":null,"accuracy":8.693996760894928,"altitude":198.7344512939453,"time":1675232679442,"latitude":12.125589638800754,"bearing":null} ⚡️ [log] - {"longitude":75.54271380178663,"simulated":false,"altitudeAccuracy":25.629905700683594,"speed":null,"accuracy":8.693996760894928,"altitude":198.7344512939453,"time":1675232679442,"latitude":12.125589638800754,"bearing":null}

ivinantony commented 1 year ago

i found the issue. when i use distanceFilter:0 it was not getting the data. when i removed it.its working fine.

diachedelic commented 1 year ago

The README states that distanceFilter:0 means no filter. This should be fixed in v.1.2.8.