Questions tagged [android-c2dm]

Google Cloud Messaging for Android (GCM) - service for sending messages from third-party server to device.

The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data. The GCM service handles all aspects of queueing of messages and delivery to the target application running on the target device.

Characteristics

  • It allows third-party application servers to send lightweight messages to their Android applications. The messaging service is not designed for sending a lot of user content via the messages. Rather, it should be used to tell the application that there is new data on the server, so that the application can fetch it.
  • GCM makes no guarantees about delivery or the order of messages. So, for example, while you might use this feature to tell an instant messaging application that the user has new messages, you probably would not use it to pass the actual messages.
  • An application on an Android device doesn’t need to be running to receive messages. The system will wake up the application via Intent broadcast when the message arrives, as long as the application is set up with the proper broadcast receiver and permissions.
  • It does not provide any built-in user interface or other handling for message data. GCM simply passes raw message data received straight to the application, which has full control of how to handle it. For example, the application might post a notification, display a custom user interface, or silently sync data.
  • It requires devices running Android 2.2 or higher that also have the Market application installed. However, you are not limited to deploying your applications through Market.
  • It uses an existing connection for Google services. This requires users to set up their Google account on their mobile devices.

Google provides official documentation for this.

699 questions
4
votes
3 answers

How to get C2DM Authorization Token for using Urban Airship

I want to Use Trial version of Urban Airship for Push notification. On registering application page of Urban Airship it require Google C2DM Authorization Token. but i am not able to get the C2DM Authorization Token from Google. i have registered my…
waseemwk
  • 1,499
  • 3
  • 15
  • 44
4
votes
1 answer

Is the android market app already installed on every Android phone

I am developing an Android app, which will use C2DM. In order to use C2DM a Gmail account must be logged in on the Android device. I searched and found that if Android market app is installed then the Gmail account is always logged in - therefore…
waseemwk
  • 1,499
  • 3
  • 15
  • 44
4
votes
1 answer

Phonegap and C2DM - NullPointerException

I am using C2DM together with PhoneGap. When I receive a C2DM message, I display a notification (via NotificationManager). When the user selects the notification then my application receives an intent. In that case I want to activate a page within…
ChrLipp
  • 15,526
  • 10
  • 75
  • 107
4
votes
1 answer

Google C2DM IPs or subnets

I need to configure my firewall settings for C2DM. Which means I need access to https://android.apis.google.com/c2dm/send https://www.google.com/accounts/ClientLogin Does anyone know which subnets that are used for this? It's impossible to use URLs…
johan
  • 6,578
  • 6
  • 46
  • 68
4
votes
1 answer

PHONE_REGISTRATION_ERROR C2DM on Ice cream sandwich AVD

I try to run my C2DM application in ice cream sandwich AVD, but it prompt PHONE_REGISTRATION_ERROR during the C2DM registration. The same code working fine on froyo/gingerbread anyone know how to fix this?
Jason
  • 878
  • 2
  • 9
  • 21
4
votes
2 answers

Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found

I am trying to use C2DM in my app, but I am getting some errors 10-14 11:21:14.904: WARN/ActivityManager(61): Unable to start service Intent { act=com.google.android.c2dm.intent.REGISTER (has extras) }: not found My code: Intent registrationIntent…
rahul
  • 2,758
  • 5
  • 32
  • 53
4
votes
1 answer

How does Cloud to Device Messaging (C2DM) work?

can somebody explain to me how googles Push Service work? I know google has a persistent connection to its servers but how come that a persistent connection doesnt drain the battery for no good? I understand polling on the otherside constantly wake…
Michele
  • 6,126
  • 2
  • 41
  • 45
4
votes
2 answers

Why do Android C2DM push messages not always arrive?

I've built a functioning C2DM app and generally it works very well, and the push messages arrive fast. However I find that fairly regularly when I first start the app or bring it back to focus, messages do not arrive. They are definitely sent…
Ollie C
  • 28,313
  • 34
  • 134
  • 217
4
votes
1 answer

How to send batch requests to C2DM (Android push service)?

I am working on how to send push notification to c2dm. According to the documentation, I need to post the requests to c2dm one by one. If there is several thousands of push request, it will be a headache. Is there any way to send batch requests like…
user403015
  • 7,209
  • 19
  • 66
  • 100
4
votes
1 answer

C2DM push notification without MQTT,UA in android api level <8

Is it possible to build c2dm in android api level <8. I do not want to use third party library like MQTT, Xtiffy UA etc. Is there any library or file which i use in my project and than i can use c2dm push notification in my <8 api level.
Girish Bhutiya
  • 3,111
  • 5
  • 31
  • 50
4
votes
3 answers

Guaranteed delivery of messages using Android cloud to device messaging (C2DM)

The docs say "C2DM makes no guarantees about delivery or the order of messages. So, for example, while you might use this feature to tell an instant messaging application that the user has new messages, you probably would not use it to pass the…
Ollie C
  • 28,313
  • 34
  • 134
  • 217
4
votes
2 answers

AppEngine RequestFactory or "Normal" approach?

This is not really a problem, more like a general X vs. Y question. So I'm experimenting with c2dm on android using a server written in google app engine. At the moment I'm using the "App Engine Connected Android Project" as a template with some…
Tomas
  • 1,399
  • 1
  • 14
  • 19
4
votes
2 answers

c2dm - Sending data with multiple lines

I have got a problem with multi line data (data that contains newline \n). These data is beeing encoded for the url call: collapse_key=®istration_id= &data.text=Line1%0ALine2&data.group=This+is+a+test I have no…
Mark
  • 7,507
  • 12
  • 52
  • 88
4
votes
1 answer

How to implement C2DM in android?

I am searching about how to send notification using C2DM. I found something and using that I am able to generate Registration Key as well as an Authentication Key. But after that in ServerSimulator class (sever side code) I got 401 Error (401…
anddev
  • 3,144
  • 12
  • 39
  • 70
4
votes
1 answer

grails C2DM - Android

looking for some Grails Plugin that implement the push notification for android. I am already using apns for Iphone, but now I have to implement it for android! any suggestion?!
Arthur Neves
  • 11,840
  • 8
  • 60
  • 73