Reputation: 95
I' am looking for solution to running custom process indefinetly in background, even if user quit from application. It would fetching data from the server and generate local notification. I' am working with Nativescript/Angular and I heard about Workers
but as far as I know, they can't keep the process if the app is not in foreground. It would be greatful if the solution will be suitable for IOS and Android. Have you any ideas to do this? Thanks in advance for your involvement
Upvotes: 0
Views: 514
Reputation: 21908
iOS can not run something on background continuously. It's the OS which decides when your background execution can run. Refer BackgroundExecution docs for more info and samples.
On Android you are free to run it continuously at least until the user blocks it on his choice, sample implementation can be found here.
Upvotes: 1