-1

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

Ushal Naidoo
  • 2,704
  • 1
  • 24
  • 37
  • 1
    For the record, the PHP part of C2DM/GCM is not, technically speaking, **in** the Android app. It's somewhere on a server. – Seva Alekseyev Nov 04 '12 at 15:52

2 Answers2

2

First off, C2DM is dead. Long live GCM!

Secondly, here's an example.

323go
  • 14,143
  • 6
  • 33
  • 41
0

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

Community
  • 1
  • 1
Ushal Naidoo
  • 2,704
  • 1
  • 24
  • 37