Background Geolocation not working any more
Closed this issue · 0 comments
Your Environment
Ionic v3
Ionic-Info:
Ionic:
ionic (Ionic CLI) : 4.12.0 (C:\Users\JustTechnology\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.8
@ionic/app-scripts : 3.2.4
Cordova:
cordova (Cordova CLI) : 7.1.0
Cordova Platforms : android 6.4.0, browser 5.0.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.5.1, (and 23 other plugins)
System:
Android SDK Tools : 26.1.1 (C:\Users\JustTechnology\AppData\Local\Android\Sdk)
NodeJS : v8.17.0 (C:\Program Files\nodejs\node.exe)
npm : 6.14.5
OS : Windows 10
- Gradle 5.4.1
- Background Geolocation Plugin-Version:
Context
I need Background geolocation for android and tested this Plugin successfully for a long time. Now it seems to be broken. Remove/Add platform doesn´t help. Update Ionic Cli does not help.
Expected Behavior
Background Geolocation should update like DISTANCE PROVIDER or ACTIVITY_PROVIDER and send BackgroundGeolocation responses.
Actual Behavior
No Background Response is triggered. Not to http-post nor locally on the phone.
BUT:
When I reinstall the plugin, the location will be updates the first time. When I start the App again, there will be no more updates.
Background.geolocation.Start() dont get any errors.
chrome://inspect/ also shows no error.
Reinstall plugin ans everything works fine for 1 time.
Debug logs
Second time:
this.m_BackgroundGeolocation.configure(this.m_Settings_Provider.getGeolocationBackgroundConfig())
.then(()=>
{
this.m_CARWAY_LocationTracker_Provider.m_BackgroundGeolocation.start()
});
No error and no update are shown