ios - RegisterForRemoteNotifications throws com.apple.UNSNotificationRegistrarConnection -
the app called following methods register push notification when app launched
[[uiapplication sharedapplication] registerusernotificationsettings:[uiusernotificationsettings settingsfortypes:(uiusernotificationtypebadge | uiusernotificationtypesound | uiusernotificationtypealert) categories:nil]]; [[uiapplication sharedapplication] registerforremotenotifications];
however there small chance app throw following exception when executes registerforremotenotifications
crashed: com.apple.unsnotificationregistrarconnection exc_bad_access kern_invalid_address
it difficult reproduce , not happens. know root cause of issue? many thanks.
Comments
Post a Comment