Keep app running when not the active app

11-19-2016 12:57 PM
New Contributor II

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?



Tags (4)
0 Kudos
1 Reply
Esri Contributor

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 



0 Kudos