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

Android: Does C2DM request a post for each Registration_id? (1:1)

After I get the Auth token from https://www.google.com/accounts/ClientLogin do I need to send 1 message per registration_id, or can I post a message to many (1:N) registration_ids at once? If I have to pass 1 post per registration_id (1:1) , how…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
0
votes
2 answers

How do I create or get a password for sending notifications to C2DM?

I just signed up for C2DM, and got the following email: Thank you for your interest in Android Cloud to Device Messaging (C2DM). We've accepted your application into the trial group. The Google account you requested as the sender account for your…
Paul Fryer
  • 9,268
  • 14
  • 61
  • 93
0
votes
1 answer

Android c2dm unknown permissions

I've seen a very similar question was posted but his solution didn't help. I'm seeing unknown permission in the warn section of logcat. unknown permission com.google.android.c2dm.permission.C2D_MESSAGE in package com.upmc
Ryan Gray
  • 824
  • 8
  • 17
0
votes
1 answer

Track user response in C2DM

I am doing push notification for android using C2DM. it works well. but while receiving message in mobile, user can only view the message. if we took APNS for iphone as example, user can response to the notification by clicking "view" button or…
viji
  • 1,652
  • 2
  • 20
  • 34
0
votes
1 answer

c2dm PushDemo ask

i already coding an ac2dm application, i follow this tutorial, but... i found something strange with the code... here's the code.. package de.vogella.android.c2dm.simpleclient; import java.io.BufferedReader; import java.io.IOException; import…
0
votes
1 answer

C2DM registrationId in emulator after restart

After some fits and starts, I've gotten Android C2DM working in the emulator. The first time the app launches, it registers with the C2DM service, using code from the chrometophone project. The registrationId is saved in the preferences, and used on…
shawkinaw
  • 3,190
  • 2
  • 27
  • 30
0
votes
1 answer

PHP - C2DM Application Server Implementation

I'm trying to setup the application server part of C2DM push messaging using this code - https://github.com/lytsing/c2dm-php. I have completed the app side of things and have registered an email address with Google - every time I run the code (on a…
Dancer
  • 17,035
  • 38
  • 129
  • 206
0
votes
2 answers

C2DM advice on implementation

Fellow struggling programmers, I've consulted all the documentation concerning c2dm but am still looking for some advice. Do I need to implement a service within my application to listen for the Intents created when the google server pushes them to…
Ryan Gray
  • 824
  • 8
  • 17
0
votes
1 answer

android c2dm limit

anyone uses this service and has many user knows if there are any limit of registered devices on my app?? Google doesn't say nothing about this but I've read in a forum that 100 is the limit :( I want to make a big app with at leads thousands of…
Alexx Perez
  • 215
  • 2
  • 10
  • 19
0
votes
1 answer

Android c2dm registration Unsuccessful

When I get response from c2dm there is an error in intent object req code is: Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER"); registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(),…
0
votes
1 answer

Django c2dm with OAuth2

I want to develop a Django application to send message thr google c2dm server to andriod device.it uses OAuth2 to authorization. first i got the credentials and store it in the storage as storage and then i want to get the credentials from …
andare
  • 21
  • 6
0
votes
0 answers

while running sample C2DM app crashes while registering to c2dm server and receiving push notification

I'm trying to run c2dm sample applications like jumpnote, bigdaddy app in my android rooted 3.0 gtab wifi model, while runing bigdaddy google io sample app while registering to c2dm server and receiving push notification I'm getting runtime error…
LOG_TAG
  • 19,894
  • 12
  • 72
  • 105
0
votes
1 answer

how can i get push notification using C2DM in titanium android?

I i am developing an android application using appcelerator titanium. We can get push notification in native application in android using C2Dm. But i did not get a way to get push notification in titanium. Please provide me sample source code to get…
Raghu Mudem
  • 6,793
  • 13
  • 48
  • 69
0
votes
1 answer

Shared folder in Appengine connected not updating

I made a Appengine connected Android project. Worked will. Made custom Entity Class and Service class and Datastore as shown in the Tut:Customizing your project. My problem: When I add a new method to the Service class, and then using warning…
0
votes
1 answer

C2DM - Device and third party server email accounts query

Looking entirely from the user account perspective, are the following pointers to be followed for the C2DM push system to work? Manually sign up on https://developers.google.com/android/c2dm/signup and provide package name of my android app.…
RRK
  • 375
  • 3
  • 8