Implement push notification server in php

google-cloud-messagingpush-notification

This is my first post, sorry my English

Hello every one. I am a new programmer in PHP and i would like to use Zend Mobile Framework to implement my push notificator server.

I'm searching how to implement the tomcat project used in

http://developer.android.com/guide/google/gcm/demo.html

but written in PHP.

In the code most below I written the used sources.
When I call the submit button, always have response with InvalidRegistration error.

Can anyone see where the error?

Thank You very much

http://pastebin.com/MauzLX71

Best Answer

According with Android GCM's architectural overview you have an invalidRegistration error when:

Invalid Registration ID Check the formatting of the registration ID that you pass to the server. Make sure it matches the registration ID the phone receives in the com.google.android.c2dm.intent.REGISTRATION intent and that you're not truncating it or adding additional characters. Happens when error code is InvalidRegistration.

Check the official GCM documentaion here, please.

Related Topic