Select to view content in your preferred language

Send location while phone locked

658
2
01-14-2020 02:23 AM
OmerBen-Asher
Occasional Contributor

Hi,

Is there a way to enable background process while the phone is locked and the screen is off, I am trying to send the GPS data to a feature services. It works fine but when   the phone is locked it stop sending the data. I’m developing  qml in appstudio environment .

Thank you.

0 Kudos
2 Replies
ErwinSoekianto
Esri Alum

Omer, 

I think this can be achieved by enabling the Background Location capabilities, Capabilities—AppStudio for ArcGIS | Documentation 

This can be done by going to the setting of the app and enable the Capabilities > Background Mode > Location. 

And then please make sure that to check the Qt.ApplicationState property, the app should be in the ApplicationHidden state in the background mode. 

Thank you,

Erwin

0 Kudos
OmerBen-Asher
Occasional Contributor

Hi,

We done it that it didn’t work, what did work eventually is that we changed the evet that  was responsible for sending the GPS data. The event that didn’t work with the background process was on position changed, and we replaced it with a timer. The timer was successful with sending the GPS data while the phone was locked.

Thank you.