eddieowens / react-native-boundary

Native implementation of geofencing/region monitoring
Apache License 2.0
121 stars 72 forks source link

[Android] Re-register boundaries on device boot #57

Open m-ruhl opened 4 years ago

m-ruhl commented 4 years ago

According to the Android documentation the boundaries need to be re-registered after an device boot:

The app must re-register geofences if they're still needed after the following events, since the system cannot recover the geofences in the following cases:

  • The device is rebooted. The app should listen for the device's boot complete action, and then re- register the geofences required.

https://developer.android.com/training/location/geofencing#re-register-geofences-only-when-required