1

It has been a couple of weeks and I am having so much trouble making C2DM work. I've read a million guides and watched video tutorials but have had no luck. I just need a way to communicate with my server and my phone in the simplest way. Any help?

ale
  • 6,369
  • 7
  • 55
  • 65
Qasim
  • 1,686
  • 4
  • 27
  • 51

2 Answers2

2

If you're still interested in trying C2DM, try installing the Google Plugin for Eclipse and use it to generate the Android / App Engine sample project. It should be able to generate a skeleton project that is able to communicate between AppEngine and a basic Android application. You could verify that the sample works and use it as a basis to debug your custom application.

There was also a related AppEngine + Android session at Google I/O this year.

Erich Douglass
  • 51,744
  • 11
  • 75
  • 60
  • To add to the links, http://urbanairship.com/ claims to offer an easy solution to push notifications. Note: I do not have any personal experience with this site and am not affiliated. – Kevin King Aug 08 '11 at 18:54
  • Would I have to use App Engine? I heard it costs if I want to publish my app. – Qasim Aug 08 '11 at 18:54
  • You can run the AppEngine project locally. That may not be appropriate for production, but I was merely suggesting it as a way to quickly get access to a working sample. – Erich Douglass Aug 08 '11 at 18:57
0

The easiest way to get push into your app is to use a third party push provider like Urban Airship or Xtify. Instead of writing the code to interface with google directly you integrate the third party SDK into your app and they handle the messy stuff.

Additionally, you don't have to worry about scaling if your app gets (or already is) big. And going cross-platform (iOS, Blackberry) is that much easier.

jpredham
  • 2,149
  • 1
  • 23
  • 37