Intro page.
Signed up a couple of days ago, but still have not heard back.
Light weight, not for data.
No guarantee of delivery order
App doesn't need to be running to receive the message.
Requires Android 2.2 or higher.
Components:
- Mobile device with 2.2 Android, Market, and one logged in Google account.
- 3rd parth app Sever - setup by developer. Sends message to mobile device using the C2DM servers.
- C2DM Servers - ran by Google. This is the middle man.
Credentials
- Sender ID - based on google account - my-app@gmail.com
- Application ID - app reg to receive messages. ID by package name in manifest.
- Registration ID - issued by C2DM servers to Android app. This allows the app to receive the messages. this ID is tied to an application on a single phone.
- Google User Account - this is my personal account.
- Sender Auth Token - Stored on the 3rd parth app server and gives it access to the C2DM servers.
Lifecycle Flow
- Android app registers to receive messages.
- registration intent
- sender ID - my-app@gmaill.com
- application ID
- C2DM broadcast registration intent
- Gives app registration ID
- app send registration ID to dev server
- dev server send message.
- ap server sends message to C2DM servers.
- Google enqueues and stores the message
- When app device is on line, message is sent.
- message gets broadcast on app device to app
- device app process message (wake lock can be used)
- Android app receives message from a C2DM server.
Activity
Services
Broadcast receivers
Content providers