Skip to content
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

Open
svarughese91 opened this issue Apr 7, 2018 · 0 comments
Open

Can’t latch onto lifecycle #10

svarughese91 opened this issue Apr 7, 2018 · 0 comments

Comments

@svarughese91
Copy link

svarughese91 commented Apr 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant