I'm building an app using AppStudio/Qt Creator that continuously collects the gps location, performs some queries on a local geodatabase, and syncs the geodatabase with server. When the app is not the active app on the phone, the app pauses. When active again, it will resume where it left off. I noticed in the Console the "state" of the app changes:
qml: App State: 2 | Flag: false <---- app pauses
qml: App State: 0 | Flag: true <---- app resumes
Is it possible for the app to keep running when it is not the active app?
Thanks,
Josh
Hi Joshua,
You are right about the behavior, by default any app doesn't have the ability to run in background.
AppStudio does have Background Location capability which supports location based tasks when your app is in background.
Learn more on how to add this to your app Capabilities—AppStudio for ArcGIS | ArcGIS
Best,
Siddesh