Keep app running when not the active app

Discussion created by donat050_UMN on Nov 19, 2016
Latest reply on May 3, 2018 by SPillai-esristaff

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?