I have requirement that I’m unsure about the possibility of. It’s an app that has a indefinitely ran background job on iOS and Android that periodically check if the phone is in a geofence zone (Polygon of set coordinates). I’ve researched this and have discovered some edgecases, such as the behaviour of background jobs if the phone is restarted, app crashed, background job is killed by the OS (It’s after all checking GPS coordinates every few seconds).
I have discovered the following package that seems promising: https://github.com/transistorsoft/react-native-background-geolocation
But I haven’t discovered a verified test case that of this working flawlessly (It’s business critical that it’s flawless and ran at all times once the app is installed). So my question is if this is actually possible? If not what are some alternative ways, an external device that is hooked through e.g BLE?
I’ve tried:
- Tried to identify packages that solved this, found the following but unfortunately crashed the app before I could verify: https://github.com/transistorsoft/react-native-background-geolocation
- Researched edgecases and possibilities with such background geofence functionalities