0

i want to make app that make a notification when breaking news has arrived to news website during my search i found two ways to do that 1- using c2dm server & php & database 2- using timer that scan the website automaticly every time period i decide it

can any one help me by give me an example code for each method or a Tutorial for each method

Seshu Vinay
  • 12,984
  • 8
  • 56
  • 106
DoctorDoom
  • 371
  • 1
  • 7
  • 19

2 Answers2

2

I'm working on GCM as well. The first comment already told you the right way to solve your problem, but I wanna add something more is that This excellent tutorial

Read it, try to understand it. I think it is quite clear. Hope this help :)

0

C2DM is deprecated. You could use GCM instead. Go through this tutorial how to get started with it. You can refer this too.

Community
  • 1
  • 1
Seshu Vinay
  • 12,984
  • 8
  • 56
  • 106
  • whats method to add website that i want to subscribe – DoctorDoom Oct 08 '13 at 09:49
  • You need to create a project on Google Apis. It gives an Api Key when you add ip of your website. And it gives project id, using which the android app registers to the GCM server. – Seshu Vinay Oct 08 '13 at 09:52
  • 1
    So every time you want to push a message, ask GCM server to send it to device supplying the device token. – Seshu Vinay Oct 08 '13 at 09:53