简体   繁体   中英

iOS App running in Background

I have an app that need to poll the status from the server in a regular time interval (1 minute), to trigger alarm in the app.

to keep the app active in background for this purpose. I am thinking to enable the Location Updates for the background mode. So I can still continue to poll data from the server.

Is this feasible ? or will my app get rejected by Apple ?

or , there is better way of keeping app alive in background to allow me poll data at 1 minute interval ?

Apple does not allow apps to run in the background. If you want to trigger an alarm remotely, you should use push notifications .

Apple wont allow to run the application in background.The app will get rejected for this. Apple automatically deactive the application after few hours.

You can use APNS notification for this

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