更新时间:2023-02-03 09:43:13
您 didFailToRegisterForRemoteNotificationsWithError
方法不叫,因为注册没有失败 - 这是从来没有试图因为用户拒绝了这一要求。
Your didFailToRegisterForRemoteNotificationsWithError
method isn't called, because the registration didn't fail - it was never even attempted because the user denied the request.
在iOS7你可以做两件事情:
On iOS7 you can do a couple of things:
didRegisterForRemoteNotificationsWithDeviceToken
被称为 enabledRemoteNotificationTypes
的的UIApplication
对象didRegisterForRemoteNotificationsWithDeviceToken
is calledenabledRemoteNotificationTypes
on the UIApplication
object