ios - Update Parse deviceToken AFTER registration -
currently i'm sitting quite few empty devicetoken fields. figured out because there issue adding groups before installation object created - block subsequent creation efforts.
what i'm trying devicetoken again , update in parse problem is, didregisterforremotenotificationswithdevicetoken
never run again after first time...
any way device token after initial call didregisterforremotenotificationswithdevicetoken
?
this work ios 8:
if ([application respondstoselector:@selector(registerusernotificationsettings:)]) { uiusernotificationsettings* notificationsettings = [uiusernotificationsettings settingsfortypes:uiusernotificationtypealert | uiusernotificationtypebadge | uiusernotificationtypesound categories:nil]; [[uiapplication sharedapplication] registerusernotificationsettings:notificationsettings]; [[uiapplication sharedapplication] registerforremotenotifications]; } else { [[uiapplication sharedapplication] registerforremotenotificationtypes: (uiremotenotificationtypebadge | uiremotenotificationtypesound | uiremotenotificationtypealert)]; }
Comments
Post a Comment