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
1 answer

Is it required device Id and Registration Id for C2DM?

I am having some problems in doing C2DM, I research a lot, but i did not get the proper way to do it. So i am asking a question. My Questions are: 1). What is the difference between Registration Id and Device Id? 2). Is it Required both the id's for…
wolverine
  • 1,665
  • 5
  • 24
  • 43
0
votes
1 answer

Why do we use dummy@google.com in C2DM

I have been playing with Google C2DM, and managed to successfully get the push working. When I was trying to understand the code, The C2DMReceiver class of Google C2DM, has a constructor in it, which has the following lines public C2DMReceiver() { …
nithinreddy
  • 6,167
  • 4
  • 38
  • 44
0
votes
2 answers

C2DM registration failed because same auth_key

I'm currently testing my c2dm app on a notebook. I used two emulator to test the communication between my server & client devices. The problem is the second device failed to register to my server because it has the same [auth_token] as the first…
0
votes
1 answer

Android C2DM 200 Error

I'm trying to develop a android app that using push notifications. While using the Tomcat Server I'm able to successfully register and push notification to a device. I get the response back as: HTTP/1.1 200 OK [Connection: Keep-Alive,…
Ahmed Faisal
  • 4,397
  • 12
  • 45
  • 74
0
votes
1 answer

Can't use C2DM intent (android)

I try to register to C2DM but it doesn't work. I included com.google.android.c2dm in my project. When I try to find com.google.android.c2dm.intent.REGISTER , it doesn't find anything : String action =…
Alexis
  • 16,629
  • 17
  • 62
  • 107
0
votes
1 answer

ANDROID - Launch other application from a BroadcastReceiver

I need to launch/open one installed apk in my device from a BroadcastReceiver. Here is the code: public class C2DMMessageReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action =…
0
votes
1 answer

C2DM can't have registration_id

Please help me I can't fix that problem by myself, I dont receive any broadcast info C2DM should send me by broadcast my registration id but I dont received anything Here java file NotifyMeActivity.java package com.notifyme; import…
poloh11
  • 35
  • 1
  • 6
0
votes
1 answer

How do I check the Currently Visible Activity and fire one of its Methods from Anywhere?

My app has a chat screen to send and receive messages. Whenever a message is received a push notification comes in and shows the latest received message. This all works fine. But when I get my push notification I would like the chat screen to…
PaulG
  • 6,920
  • 12
  • 54
  • 98
0
votes
1 answer

c2dm remove record from mysql when unregister

does anyone know how i could delete from my mysql db once a device has unregistered from c2dm? i have in my main activity: public void unregister (View view){ Log.w("C2DM", "start unregister process"); Intent unregIntent = new…
Tuffy G
  • 1,521
  • 8
  • 31
  • 42
0
votes
1 answer

C2DM and Titanium Appcelerator Integration

I am using Titanium Appcelerator in order to implement C2DM on Android. After looking at many answers in their forums and in Stackoverflow, I found a guide that walked me through compiling and incorporating a module(titanium-c2dm from GitHub) into…
avivas
  • 173
  • 1
  • 3
  • 17
0
votes
1 answer

can Google c2dm server send empty registration Id in any case?

I am trying to send a push notification to a phone number through the c2dm server. for that to happen, I am registering my mobile with the c2dm server and i store the registration id which is got from the c2dm server. I am aware of the error codes…
Poppy
  • 2,902
  • 14
  • 51
  • 75
0
votes
1 answer

What is the best practice for doing work after receiving a C2DM message?

Can somebody explain the common way to handle C2DM intents work? I have an app that does intelligent polling - it's essentially a messaging application - so it polls the server to check your inbox for new messages. There is an activity UI, and a…
paulpooch
  • 651
  • 1
  • 7
  • 15
-1
votes
2 answers

Android: push notification for my application which is not in android market

I developed an application in android and i want to do push notification. I learned that this can be done by c2dm. Is there any way that i can test c2dm in my local system path of the app itself. can any body help.
user1051599
  • 371
  • 2
  • 7
  • 18
-1
votes
1 answer

C2dm with a webservice to get updates from a xml file

is there a tutorial that shows how to use Android Device to Cloud Messaging Framework c2dm with a web service to get updates in an xml file
-1
votes
2 answers

how to awake already running app after c2dm message on android

is there a way to awake already running app from the notification bar after c2dm message? i have this app that is registered with c2dm servers that receives push notifications from my server to do some processing. so after i receive c2dm message…
android-developer
  • 1,574
  • 4
  • 20
  • 27
1 2 3
46
47