I have created an application and uploaded it to itunes. The push notifications are not working for that now. In development it was working fine. I also have used this command to test the app:
codesign -dvvvv --entitlements - /path/to/App
And It has the following key:
< plist version="1.0">
< dict>
< key>application-identifier< /key>
< string>UFWA3A8K32.com.etubez.webmap< /string>
< key>aps-environment< /key>
< string>production< /string>
< key>get-task-allow< /key>
< false/>
< key>keychain-access-groups< /key>
< array>
< string>UFWA3A8K32.com.etubez.webmap
< /array>
< /dict>
< /plist>
Then I tried to create the distribution certificates for adhoc and tried to install it to run the push for production environment but these are not working. The php webservice returns everything ok like:
Thu, 03 Mar 2011 21:03:14 +0100 ApnsPHP[3231]: INFO: Trying ssl://gateway.push.apple.com:2195... Thu, 03 Mar 2011 21:03:19 +0100 ApnsPHP[3231]: INFO: Connected to ssl://gateway.push.apple.com:2195. Thu, 03 Mar 2011 21:03:19 +0100 ApnsPHP[3231]: INFO: Sending messages queue, run #1: 1 message(s) left in queue. Thu, 03 Mar 2011 21:03:19 +0100 ApnsPHP[3231]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 253 bytes. Thu, 03 Mar 2011 21:03:19 +0100 ApnsPHP[3231]: INFO: Disconnected.
But I am not receiving any push notifications.
I also have tried to create the certificates again n again 3-4 times but not working. Can anyone help me in this regard?
Edit: I am using this method to create the certificates: http://code.google.com/p/apns-php/wiki/CertificateCreation One certificate to use both for sandbox and production development.
Many Thanks,
Nav