iphone - register for push notifications not working for some Device -


hi facing strange issue regarding push notifications not appear popup/alert telling me accept push notifications isn't displayed device , device working fine. not understand mistake in code. trying re-generate provisioning profile after enabled push notifications certificate. can 1 please guide me how solve issue.

here code push notification:-

- (void)application:(uiapplication*)application didregisterforremotenotificationswithdevicetoken:(nsdata*)devicetoken     {         nslog(@"my token is: %@", devicetoken);     }      - (void)application:(uiapplication*)application didfailtoregisterforremotenotificationswitherror:(nserror*)error     {         nslog(@"failed token, error: %@", error);     }      - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions     {         self.window.rootviewcontroller = self.viewcontroller;         [self.window makekeyandvisible];          // let device know want receive push notifications         [[uiapplication sharedapplication] registerforremotenotificationtypes:             (uiremotenotificationtypebadge | uiremotenotificationtypesound | uiremotenotificationtypealert)];          return yes;     } 

i using above code device working fine. not reserving at-list registration popup/alert. whats probability type of issue? please me.

i think should check bundle identifier, re-create certificates , re-install it> make new iap , try again. may out.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -