I can run the APNS successfully on server. I get this message:
Fri, 03 Jun 2011 10:01:41 +0200
ApnsPHP[29402]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: INFO: Connected to ssl://gateway.sandbox.push.apple.com:2195. Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: INFO: Sending messages queue, run #1: 1 message(s) left in queue. Fri, 03 Jun 2011 10:01:42 +0200
ApnsPHP[29402]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 167 bytes. Fri, 03 Jun 2011 10:01:43 +0200
ApnsPHP[29402]: INFO: Disconnected.
But when i run the application on device, i don’t get push notification. I have written all the code and also created entitlement.plist file.
Can anyone please help me with this?? There is no debugging error as well.
Any help is greatly appreciated.
Thank you,
Anks
It sounds to me you are missing or you have an invalid app-token for your device.