How to call the C2DM PHP Function from the Android APP

纵然是瞬间 提交于 2019-12-25 17:25:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!