美文网首页
APP在断网的时候也能接收到device token

APP在断网的时候也能接收到device token

作者: c9e729c80bea | 来源:发表于2016-08-22 15:47 被阅读0次

    *在第一次调用registerForRemoteNotificationTypes方法时没有联网,则既不会调用didRegisterForRemoteNotificationsWithDeviceToken,也不会调用didFailToRegisterForRemoteNotificationsWithError

    *在第一次调用registerForRemoteNotificationTypes注册成功后,之后即使没有联网,再调用registerForRemoteNotificationTypes时都会以最上一次的device token作为参数回调didRegisterForRemoteNotificationsWithDeviceToken方法。

    (官方描述) If your application has previously registered, calling registerForRemoteNotificationTypes: results in the operating system passing the device token to the delegate immediately without incurring additional overhead.

    相关文章

      网友评论

          本文标题:APP在断网的时候也能接收到device token

          本文链接:https://www.haomeiwen.com/subject/ayzwsttx.html