You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the behaviour of the app varies between iOS and Android if the app is on background, inactive or killed.
This is especially the case with bluetooth monitoring/ranging and receiving push notifications while the phone is locked.
Android version could potentially benefit from running background tasks.
background-beacons branch includes now quite well working implementation for Android. Biggest issue is maybe backgroundSchedule -> period that isn't running like defined with all Android versions. But reliability is still quite okay.
The point is to start monitoring if there is regionDidExit / regionDidEnter event listener. If not add the event listeners, start monitoring and also start ranging. There's logic to stop the ranging (vehicle beacons at the moment) if phone doesn't see any beacons in 20 seconds.
Main problem at the moment is that Android 6 and 7 doesn't stop ranging (even if the phone is sleeping) if there is beacon in range and your phone battery will be empty quite quickly.
Currently the behaviour of the app varies between iOS and Android if the app is on background, inactive or killed.
This is especially the case with bluetooth monitoring/ranging and receiving push notifications while the phone is locked.
Android version could potentially benefit from running background tasks.
See resources:
https://facebook.github.io/react-native/docs/headless-js-android.html
https://github.com/vikeri/react-native-background-job
https://github.com/devfd/react-native-workers
The text was updated successfully, but these errors were encountered: