ios - Not receiving push notifications on iPhone5 -
i have implemented push notifications on ios app , have tested on iphone6(ios 8.4) , works fine. i've trouble making work on iphone5c(ios 8.3).
whatever do, don't notifications. i've check device token , correct don't have idea why not receiving notification on phone.
i've checked time live(ttl) value , it's not null if lost connection each time sending notification (which isn't case) would/should receive when going online again.
i can't testing/debugging on server right it's harder try fix issue.
edit:
here how register notifications:
if ([[[uidevice currentdevice] systemversion] floatvalue] >= 8.0f){ [[uiapplication sharedapplication] registerusernotificationsettings: [uiusernotificationsettings settingsfortypes: (uiusernotificationtypesound | uiusernotificationtypealert | uiusernotificationtypebadge) categories:nil]]; [[uiapplication sharedapplication] registerforremotenotifications]; } else { [[uiapplication sharedapplication] registerforremotenotificationtypes: (uiusernotificationtypebadge | uiusernotificationtypesound | uiusernotificationtypealert)]; }
any ideas ?
for have same problem, ie: not receiving push notifications on specific phone. i've managed make work doing complete reset of phone : settings > generale > reset > delete content , settings
hope helps
Comments
Post a Comment