views:

411

answers:

5

Hi, I have been trying to use the default code in the iPhone APNS documentation to generate a device token using registerForRemoteNotificationTypes() but without succes. Neither the didRegisterForRemoteNotificationsWithDeviceToken or the didFailToRegisterForRemoteNotificationsWithError is called. I had placed a UIAlert in both these methods- both did not appear.

My iPhone is acceesing APNS using Wi/Fi using DHCP.(& am able to browse ) Is there any other setting that needs to to be done to genrate a device token?

can someone post a working code which can be used to generate device token?

Thanks, V

A: 

Hi vviji, I am facing the same problem. Did you resolve the issue? Please share with me the solution.

cooliPhoneGuy
A: 

I'm SOrry Shailesh; I'm still stuck at that point.

+1  A: 

SOLVED: The outgoing port 5223 had to be opened for the Firewall of my WiFi AP.

A: 

Solved: Try with Good iPhone device. :)

cooliPhoneGuy
A: 

What happen if I´m in a diferent WI-FI network

Will not receive token? ?

DevOI