-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can’t latch onto lifecycle #10
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to access the watcher of the exit stationary region but it says any of the functions I try to access done exist.
this.backgroundGeolocation.on('stationary', (stationaryLocation) => { // handle stationary locations here });
When i try to do the above i get the error: Property 'on' does not exist on type 'BackgroundGeolocation'.
Your Environment
Plugin version: 2.3.3
Platform: iOS
OS version: iOS 11
Device manufacturer and model: iPhone 7
Cordova version (cordova -v):8.0.0
Cordova platform version (cordova platform ls):4.5.4
Plugin configuration options:
desiredAccuracy: 10, stationaryRadius: 5, distanceFilter: 5, interval: 2000, httpHeaders: { 'Content-Type': 'application/json', 'Authorization': getAuthToken() }, url: this.updateLocURL, debug: true, // enable this hear sounds for background-geolocation life-cycle. stopOnTerminate: false, // enable this to clear background location settings when the app terminates
The text was updated successfully, but these errors were encountered: