iOS push services: is an invisible push notification possible?

后端 未结 7 515
梦如初夏
梦如初夏 2021-02-02 12:55

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 ne

7条回答
  •  滥情空心
    2021-02-02 13:43

    You can receive notification while you are in foreground, but the server won't make any difference if you are in background or in foreground, unless you send an information to the server that you are in foreground.

    That's why in your case, ase described in the previous message, it's better to check with the server when you came from background or when the application starts if there is any upload.

    The other option is to send a visible notification so the user will start the application and then the update (as described in the previous paragraph) will happens

提交回复
热议问题