-
Notifications
You must be signed in to change notification settings - Fork 212
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
Defer start and configure until mService != null
#7
Conversation
This does not solve #201 for me, I'm still getting a FATAL EXCEPTION when I close the app (from the switcher or by pressing the back button enough times to leave) and then attempt to load it again. I only turn on the location tracking when it's being used, not always when my app is open so it doesn't really make sense to me that it's trying to pause an activity on load (that's what the stack trace sounds like, I'm not totally clear). I get the following stack trace(s):
It seems like this has something to do with the provider I'm using, so here's how I'm configuring things:
|
It's a different issue! #201 is about calling |
Although the solution could be similar - queue all |
@mauron85 When will you plan to merge it and release new version of React-Native plugin? |
After quick look, it doesn't seem like proper fix for the problem. This PR just adds null checks, but as result one might call start or configure method and nothing happens. |
@mauron85 incorrect. It adds null checks - and defers the actions to later. |
ok then. it could be merged as temporary solution |
Defer `stop` too PR: #7 By: @danielgindi
Merged. Thank you for your contribution! |
Thank YOU! |
Fixes:
mauron85/react-native-background-geolocation#201
mauron85/react-native-background-geolocation#181
mauron85/react-native-background-geolocation#172