Will iOS awake my app when i receive silent push notification?(When app is not in running state)

前端 未结 4 755
盖世英雄少女心
盖世英雄少女心 2020-12-09 22:38

Update Question :

The requirement is; as soon as I receive silent notification, I want to run a web service and show the one liner in the notification bar.

4条回答
  •  粉色の甜心
    2020-12-09 23:06

    As far I have tested when the app is terminate by the user (swiping up from the app switcher) you won't have background execution time due to silent push flag (content-available) or background fetch.

    Also this:

    Also keep in mind that if you kill your app from the app switcher (i.e. swiping up to kill the app) then the OS will never relaunch the app regardless of push notification or background fetch. In this case the user has to manually relaunch the app once and then from that point forward the background activities will be invoked. -pmarcos (Apple worker)

    From apple forums: https://devforums.apple.com/message/873265#873265

提交回复
热议问题