Skip to content

Still running app after clicking home button or display turn off #13633

Answered by m1ga
beppo-ivel asked this question in Q&A
Discussion options

You must be logged in to vote

Check https://titaniumsdk.com/api/titanium/android/service.html#background-location-service-example
That app is 8 years old and the Android eco system changed a lot! There are way more permissions you'll have to accept now in order to access location in the background. And you have to run a foreground service.
First think I would add is exitOnClose: false so it will put the app to background all the time and not close the app.

Also check https://github.com/m1ga/titanium_background_app

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@beppo-ivel
Comment options

@m1ga
Comment options

@beppo-ivel
Comment options

@m1ga
Comment options

@beppo-ivel
Comment options

Answer selected by beppo-ivel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants