问题
I am trying to add a Push Notification service to my Android Application. I added the necessary methods in the application (Receiver, Manifest Changes etc.)
I then proceeded to follow this (http://stackoverflow.com/questions/4121508/c2dm-implementation-php-code) to add the functions to my third party server for registration to C2DM and sending messages.
This may sound silly but as I am not that proficient at PHP can somebody please advise me on how to call the PHP functions to register/send messages from the Android App.
Thank you in advance, I will appreciate any help I receive.
RF
回答1:
First off, C2DM is dead. Long live GCM!
Secondly, here's an example.
回答2:
Thank you 323go.
GCM is awesome. Really Easy to implement and use. For anyone that needs help with setting it up this is what I used:
Android GCM Implementation
PHP Server Code
Goodluck
来源:https://stackoverflow.com/questions/13079840/how-to-call-the-c2dm-php-function-from-the-android-app