-
Notifications
You must be signed in to change notification settings - Fork 562
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
[Android] GPS crash and shutdown after first location update received #10
Comments
with locationProvider = 1 (activity) GPS works normally, but seems that interval number specified is not considered. The problem of GPS crashing seems affect only locationProvider 0 (distance filter) |
+1 |
Can you post log of crash from |
Ok, I've probably found problem. Just for confirmation. Does crash occur only after reload or it crashes also without reload? |
Android onStationary Android getLogEntries Android create gradle project Android remove location filtering Android db logging instead of file
Android onStationary Android getLogEntries Android create gradle project Android remove location filtering Android db logging instead of file
Android onStationary Android getLogEntries Android create gradle project Android remove location filtering Android db logging instead of file
Fixed crashed when app was reloaded from dev menu in "0.2.0-alpha.3". Reopen if necessary. |
Have almost same problem.
Plugin configuration options: Expected BehaviorPlugin starts tracking device location, calls on('location') callback. Actual BehaviorI can see console.log in .start success callback, .on('location') never called, app crashes.
Steps to ReproduceConfigure plugin in componentWillMount |
Can you post full log? Few more lines will reveal full stacktrace. PS. Version 1.08 does not exist, which version are you using? PS2: Also upgrade to RN 0.33. Some issues related to this are fixed in 0.33 |
I am sorry, version is 0.2.0-alpha.4. Full |
Here is
|
Pastebin logs are useless, there is no crash there. And second one also. I need to 'see' after lines:
Do not grep, because if filters out the most import part. |
Upgrading React Native to 0.33.0 didn't solve the problem |
Ok last log was quite helpful. There is exception: |
Please try installing from git branch issue10.
|
installed from Now it's not crashing. But after launching application I want plugin to check my position every 15 sec. Am I doing something wrong?
|
That's how it works. It is using distance filter to save battery.. https://github.com/mauron85/cordova-plugin-background-geolocation/blob/master/ANDROID_DISTANCE_FILTER_PROVIDER.md There is also another ANDROID_ACTIVITY_PROVIDER, which doesn't have distance filter. You can choose between those two. PS: need to copy these docs from cordova repo. |
When i put the application in background and send location update (both emulator and real device), i've got this errors:
|
@vincenzoiacovone are you using RN 0.33? |
I put the app in background using back button. I use 0.32 |
yes, it should be fixed with 0.33 |
Hi again. On android 4.4.2 .watchLocationMode fail callback runs with |
@DanDance , did you found the solution ? |
@kholiavko-roman with |
After first location update received, GPS shut down and stop working
BackgroundGeolocation.configure({
desiredAccuracy: 10,
stationaryRadius: 50,
distanceFilter: 10,
debug: false,
stopOnTerminate: false,
interval: 10000,
startOnBoot: false,
stopOnStillActivity: false
})
Expected Behavior
GPS still active receiving updates
Actual Behavior
GPS stop working after first update
Steps to Reproduce
The text was updated successfully, but these errors were encountered: