forceReloadOnHeartbeat property

bool? forceReloadOnHeartbeat
getter/setter pair

@deprecated: Banned in Android 10. Use enableHeadless instead

Force launch your terminated App after a BackgroundGeolocation.onHeartbeat event.

When the user terminates your Android app with BackgroundGeolocation configured with stopOnTerminate:false, the foreground MainActivity (where your Flutter app lives) will terminate -- only the plugin's pure native background-service is running, "headless", in this case. The background service will continue tracking the location. However, the background service can optionally re-launch your foreground application.

WARNING: When the background service re-launches your application, it will briefly appear in the foreground before immediately minimizing. If the user has their phone on at the time, they will see a brief flash of your app appearing and minimizing.

Implementation

bool? forceReloadOnHeartbeat;