Search code examples
iosiphonepush-notificationbackground-process

How to do some task in background after kill the application


i am doing one application.In that one task is running in background every time.My problem is,if i kill the application then that task also stopped.But i want to run that task after application killed by user.How to do this one.


Solution

  • There is no way to run any kind of processes in the background after user kills the application. See what Viber does for their app.

    enter image description here

    So you can give a notice to user not to quit the app, but you would have to give them a valid reason. And if your app is not GPS or Music app your app will not be active in the background and you all your processes will be suspended by the OS to save battery life.