iOS push services: is an invisible push notificati

2019-03-11 00:04发布

I'm building a iPhone application which depends data from an online database.

To update the data in the app i could check at a certain time interval if an update is necessary but it is way cooler if i could use a push services which sends a notification to the app letting it know it is time for an update.

i'm not talking visible push notifications here, just a invisible push notification to fire the update method in my app.

Is there a standard way to do this or could i use apple's push notification services for this purpose ?

With other words: i'm now using pull to get updates, is there a push way to let the backend of my app know it is time for an update?

Edit: And if it is impossible, what would be good time interval for the update (0.03 kb if there are no updates). Is it to much to check it every 30 seconds ?

7条回答
成全新的幸福
2楼-- · 2019-03-11 01:02

You cannot send an invisible push notification while the application is in background. The only way is to update the data when the application comes to the foreground.

You would check at a certain time interval if an update is necessary or make a pull connection with the server.

查看更多
登录 后发表回答