I want to run an app that records current geographic location every 15 mins. But usually a phone/computer go sleep or the user opens other apps/window
that stop the app doing the recoding.
is there a way to keep the app running (execute the “every 15 mins” task) even in the background?
I’ve just quickly tested the GPS location with the BDK. Unfortunately the situation is the same - when the device is locked - the workflow that detects the location is not running . When the device is unlocked and app is running in the background - the GPS location is detected.
Enabling Background App Refresh with the BDK wrapper allows the app to pick up where it left off but doesn’t keep the “run every 30 seconds and update position” workflow active in the background. It’s as if the workflow gets paused or disconnected.
Yeah, it does. When you enable it through the BDK wrapper, it pops up a native permission request just like any other app. You can also tweak these permissions later in the phone settings for the app.