eddieowens / react-native-boundary

Native implementation of geofencing/region monitoring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Android] Re-register boundaries on device boot

m-ruhl opened this issue · comments

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