且构网

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

应用程序终止时的 iOS 10 推送通知?

更新时间:2022-12-21 13:27:21

您需要通过点击通知托盘中的推送通知来打开应用程序.

You need to open the application by tapping the push notification in the notification tray.

当您从图标启动应用程序时,launchOptions 将为 nil.从推送通知启动将为您提供启动选项.

When you launch the application from the icon, launchOptions will be nil. Launching from the push notification will provide you launchOptions.

https://developer.apple.com/reference/uikit/uiapplicationdelegate/1622921-应用程序