Push Notifications And Game Invites (Not Working For Me)

We are also having problem sending Push Notifications through Corona Cloud !!

After logging in, getting the device ID and sending device registration request, we get the event that the device is registered the first run and then subsequently “already registered” so I take this as an indication that the APNS is OK with the PN registration?

When submitting notifications from Corona Labs dashboard, it says “Notification successfully sent.” but we don’t see any notifications on the device.

Trying to send notifications between the devices using Corona cloud doesn’t work either.

I’m under the impression that with the Cloud we don’t need a notification server (other than the cloud). Is this correct or am I out in the blue here?

Hi Joel,

Have you tried disabling misconfigured push setting in Corona Cloud Dashboard?

For me the problem was that I had both Apple and Android push enabled, but only Android was configured correctly. So after disabling Apple push everything worked fine.

Hope this helps!

Qwertier

Hi, thanks for the tip but it still doesn’t work (we are developing for IOS).

I’m almost sure it’s something wrong with the certificates or keys. We have followed these tutorials by the letter and still no go:

http://www.coronalabs.com/blog/2011/12/21/push-notifications-for-ios-in-corona-sdk/

http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

When trying the sendpush.php script in the Corona tutorial above I get:

PHP Warning:  stream_socket_client(): Unable to set private key file … sendpush.php on line 21

I also get an Error if I’m trying to import the resulting ck.pem file into the Keychain (just as a test) which again leads me to suspect the cert / key files.

Again, everything seems correct on the device. It asks for permission to receive Push Notifications, I get the Device Token after registering, etc but still no notifications… I’m seriously running out of ideas.

Hi,

Would you be able to email me mohamed(at)coronalabs.com the certificates and passphrases for me to verify on my end?

Thanks

-Mohamed

@qwertier  Yes, Android push was added just before Christmas 2012 which is well after 971.  I don’t remember the build number where it went in, but if you look at the daily builds around the week of 12/20 you should see it.

Hi again guys, and thanks for your response.

We have started to get things working now. Sending from a php script now works! There was probably something wrong with the key or certificate files. I also found out that it is not necessary to make two separate .pem files and combining them. I just exported from Keychain Access (Version 7.0) as .p12 file and then used:

openssl pkcs12 -in exported.p12 -out ck.pem

For some reason I get verify error:num=20:unable to get local issuer certificate when verifying with openssl s_client but it doesn’t seem to be any problem. Maybe I miss some CA certificate or something.

BUT sending from Corona Labs panel is still not working. It says “Notification successfully sent” but no notification is received. I haven’t had time to try device-to-device via Cloud yet. Any help is much appreciated.

Hi Joel,

Can you please send me your game ID and device ID, and I can check it out on my end.

Thanks

-Mohamed

Hi Joey,

I think we are on the same boat, I am having problem with iOS notification too, I tried my p12 certificate with another platform, and it worked, so I was wondering if you have been able to get it working yet?

Thanks,

Joey

Hi Joey,

I think we are on the same boat, I am having problem with iOS notification too, I tried my p12 certificate with another platform, and it worked, so I was wondering if you have been able to get it working yet?

Thanks,

Joey