application:didReceiveRemoteNotification:fetchCompletionHandler Not Called

后端 未结 8 1401
南方客
南方客 2020-12-01 08:22

It appears the function application:didReceiveRemoteNotification:fetchCompletionHandler is not called when the app has been forcefully quit. It was my impressio

8条回答
  •  不知归路
    2020-12-01 08:44

    If you force quit an app from the application switcher, it will not be woken in the background (via any means) until after the next time it is next launched. When you force quit an app, you are effectively saying to the OS that you do not want this app to run at all, even if a background event would normally have woken it.

    This is worth watching out for during testing, as you may have force quit the app in order to check that it gets launched via the push notification when the app is not running. In fact, your use of force quit will be the reason why it doesn't get launched.

提交回复
热议问题