iphone - Notification not getting shown in one of IOS device -


i facing problem notification. notification not getting shown in device last 12 hours. working earlier. sending other devices works fine. checked notification center , other thing. notification enabled app.

after following http://developer.apple.com/library/ios/#technotes/tn2265/_index.html have enabled enabling push status messages on ios.

on console , device printing information like:

<error>: kdataattachstatusnotification sent, wasattached: 1 isattached: 1 

what mean ? getting notification server side , failing show , receive due reason ?

edit: after syncing logs itunes. logs says like:

2013-08-01 10:51:06 +0530 apsd[76]: _getclientidentity: had identity: <secidentityref: (some value here)> wasup no isup no linkqualitybelowandwowavail: yes wantsinterfaceassertion yes  avoidwwanoncall no 2013-08-01 10:51:06 +0530 apsd[76]: _getclientidentity: had identity: <secidentityref: (some value here)> 2013-08-01 10:51:06 +0530 apsd[76]: peer(68) received xpc_error_connection_invalid 

have requested permission user present notifications?

try adding following code appdelegate's application: didfinishlaunchingwithoptions: method:

swift:

 if (uiapplication.instancesrespondtoselector(selector("registerusernotificationsettings:"))) {     application.registerusernotificationsettings(uiusernotificationsettings(fortypes: .alert, categories: nil))  } 

objective-c:

if ([application respondstoselector:@selector(registerusernotificationsettings:)]) {     [application registerusernotificationsettings:[uiusernotificationsettings settingsfortypes:uiusernotificationtypealert categories:nil]]; } 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -