Closed andreydiskin closed 1 month ago
The Motion api is provided by Google Play Services. It is a black box with only an “on/off” switch. It has no configuration; it cannot be fine-tuned. It depends completely upon the quality of sensors on the device (accelerometer, gyroscope and magnetometer).
@christocracy I think that issue is not in the sensors, since when it works it is accurate. I thought it might be to initialization/cleanup. Is there a way to forcefully cleanup background tasks the package performs and start fresh?
Is there a way to forcefully cleanup background tasks the package performs and start fresh?
No
@christocracy
Is there anything wrong this my usage of the package? What's mentioned in package usage lifecycle
Is this a known issue?
If you’re getting “unusual results” from the ActivityRecognition api, there’s nothing you can do. There is no config option for the plug-in that affects this. The Motion api is either ON or OFF — that’s it.
Your Environment
react-native -v
): 11.3.7, package:0.72.5
Expected Behavior
Correctly update activity and speed
Actual Behavior
So the behavior I'm getting is flaky - sometimes activity fails to update, getting stuck on "still" or "walking". This is solved by phone restart, what makes me think about cleanup related things.
Steps to Reproduce
No clear reproduction steps - flaky behavior. Can happen also mobile device restart
Context
Creating an app that monitors driving, depending on speed and activity monitor
Debug logs
Logs
``` PASTE_YOUR_LOGS_HERE ```package usage lifecycle
BackgroundGeolocation.start()
when we know .ready() finished successfullyonActivityChange
BackgroundGeolocation.watchPosition()
and getting location, speed, and activity. I have to say coordinates are always correct