且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

仅当应用程序在后台时才调用静默通知回调方法

更新时间:2022-12-27 11:05:14

在阅读了大量苹果文档之后,我发现如果用户强制退出应用程序,则该方法(didReceiveRemoteNotification:fetchCompletionHandler)将不会调用.

After lot of apple docs reading, I found that the method (didReceiveRemoteNotification: fetchCompletionHandler) will not invoke if user has force-quit the app.

根据书面规定,(

As written, (link) However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.