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
0
votes
2 answers

How to catch C2DM notice coming to the phone?

Is it possible for android enabled phone to intercept all C2DM notifications? If so, which way should dig.
0
votes
1 answer

c2dm in Titanium

I'm working on building a c2dm module for my Titanium project. (I actually want gcm, but the only change is to the sender_id, so that shouldn't be a problem). However, I'm running into a lot of trouble when trying this. I tried using the module…
Colin DeClue
  • 2,194
  • 3
  • 26
  • 47
0
votes
1 answer

Which service is started in method "internalRegister" of GCM?

Below is the code from internalRegister method of GCMRegistrar class static void internalRegister(Context context, String... senderIds) { if (senderIds == null || senderIds.length == 0 ) { throw new IllegalArgumentException("No…
Gaurav Agarwal
  • 18,754
  • 29
  • 105
  • 166
0
votes
1 answer

Android C2DM How Many Messages Will Google Hold For an Offline Device?

I've been looking for a specific explanation on how many messages Google queues for a particular offline device before it starts dropping them? I've read that only 4 unique collapse keys can be queued for a device at a time but I just tested…
Miles Morales
  • 75
  • 1
  • 6
0
votes
1 answer

C2DM - Cloud to Device Messaging

C2DM - Cloud to Device Messaging : Can I use it for "device to device" comunication without a server?
0
votes
1 answer

Posting GCM notification to existing C2DM registration ids

I am wondering if it is possible to use the new GCM mechanism and post notifications to my existing registration IDs that are based on C2DM? The migration/GCM documentation didn't touch on this part, but it's implied that it may not work because it…
azgolfer
  • 15,087
  • 4
  • 49
  • 46
0
votes
1 answer

How to send push messages to multiple users using C2DM?

So far I have succeeded with send messages to one device using the registration Id and authtoken with signed C2DM role account. Now i have send messages to multiple users . I dont know how to achieve this. Could anyone help to overcome this…
VaaS
  • 637
  • 2
  • 12
  • 18
0
votes
0 answers

C2DM Push notification message not received

Im trying to implement the C2DM - Push notification by vogellas.I dont receive any message device/emulator though the code returns 200.Log cat error 'request time failed: java.net.SocketException: Address family not supported by protocol'.What has…
Satheesh
  • 646
  • 1
  • 10
  • 33
0
votes
0 answers

Android C2DM Accounts

I have an Android application that uses the C2DM service. I also have a server that integrates with C2DM. And I succeeded in registering from Android and from the server to the C2DM servers. The problem is that I can send a message only to the…
user1245809
  • 153
  • 1
  • 6
0
votes
1 answer

How long C2DM message is valid?

I am new to android development,now I am working on C2DM implementation for android device. I have used this below code to get the registrationID for the device. public void register(View view) { Intent intent = new…
0
votes
1 answer

Facing issue with creating a push notification service for Android using Google C2DM Service with asp.net mvc3

Guyz facing problems with creating a push notification service (for android) using Google C2DM which uses OAuth 2.0 . I am sort of newbie dev , and the deadline is on the head ! Please help !
bhuvin
  • 1,382
  • 1
  • 11
  • 28
0
votes
2 answers

C2DM unstableness or limitation of some kind?

I have a working C2DM project, atm. I have me and my colleagues phones registered and it has worked very well so far. Though today we were both doing testing with it, which resulted in us having to wait a really long time for these messages to…
Anders Metnik
  • 6,096
  • 7
  • 40
  • 79
0
votes
1 answer

C2DM Registration Id null

I followed this tutorial http://www.vogella.com/articles/AndroidCloudToDeviceMessaging/article.html I wrote the manifest File giving all the permissions which are sufficient. But I'm getting registration Id null..Please help Here's the code I…
skjindal93
  • 706
  • 1
  • 16
  • 34
0
votes
1 answer

SERVICE_NOT_AVAILABLE in C2DM

Sometimes when i try to register for C2DM, I get SERVICE_NOT_AVAILABLE error. I used the code that has been given in googletochrome application when this error occurs. I just want to ask for how many times it retries andwhat is the possibility that…
Rookie
  • 8,660
  • 17
  • 58
  • 91
0
votes
2 answers

Device id in C2DM

As far as I know, C2DM is per app per device thing..but my question is ,what is the use of device id and where do we use device id in C2DM?
Rookie
  • 8,660
  • 17
  • 58
  • 91