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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -