首页 文章

在swift 2中的ios应用程序中接收远程通知?

提问于
浏览
-1

有两种方法:

1)didReceiveRemoteNotification userInfo

2)didReceiveRemoteNotification userInfo fetchCompletionHandler

这两种方法有什么区别,它们何时被称为?此外,如何在通知到达时确定应用是否处于活动状态?最后,在第二个函数中传递的completionhandler是什么?和 how do i use the completion handler to handle the notification

1 回答

相关问题