简体   繁体   中英

Is it possible for my iOS app to keep running code when a user kill my app?

Is it possible for my iOS app to keep running code when a user kill my app? Now with latest iOS version (9.x), can we achieve this?

My app needs to send GPS locations to the server even a user kill this app.

Now my app keeps running in Background Mode. But not running after my app is killed.

No. If you could figure out how to keep things going after the user force quits/terminates your app, that app continuing to run after they are killed would certainly be considered a security risk (and performance hit) by Apple and wouldn't be allowed on the app store.

You might be thinking of Background App Refresh , but even if apps that utilize BAR are killed, they don't refresh either .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM