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

How to display C2DM message as a push notification (recived on onMessage() function of GCMIntentService class)

Hi all i implemented C@DM in my app based on the tutorial provided by http://avilyne.com/?p=267.It works but my problem is i only getting the message in my activity that set on a text view.But i want it out side the app even if app is not working…
-1
votes
2 answers

How to call the C2DM PHP Function from the Android APP

I am trying to add a Push Notification service to my Android Application. I added the necessary methods in the application (Receiver, Manifest Changes etc.) I then proceeded to follow this…
Ushal Naidoo
  • 2,704
  • 1
  • 24
  • 37
-1
votes
1 answer

C2DM Registration process

I have a doubt, when we try to register for C2DM, does the registration happens in backgroud thread or in normal thread. Thanks in advance
Rookie
  • 8,660
  • 17
  • 58
  • 91
-2
votes
2 answers

how to set valid time period for android c2dm message?

I would like to implement a feature that only delivers messages to devices at specific periods. After the valid time, messages would be abandoned. Can anyone suggest me how to do this?
natanovia
  • 3
  • 2
-2
votes
2 answers

Minimum payload for push notification?

Is there a minimum payload size for the push notification service for the various mobile platforms like Android, iOS, Blackberry and Windows Phone 7? I want to know if I were to send a very short message, would it be rejected. Thanks, Hend
-2
votes
1 answer

Android c2dm email address problem

I am developing android push notification application using C2DM,I am facing some problems in my application. The application is working when I am using same email address on both i-e server and client applications, Can anyone tell me what will be…
Altaf
  • 5,150
  • 10
  • 39
  • 55
-2
votes
1 answer

Android c2dm registration failed

How many days does C2DM take to activate the registration ? I've received an email indicating that it'll take a day or so, but I keep getting an "authentication failed" when I try to register a device. I'm absolutely sure I didn't make any mistakes…
Kimo_do
  • 568
  • 5
  • 12
-3
votes
1 answer

Emails in C2DM?

I have developed push notification system in android using c2dm, It's working fine but I having one problem i-e it works fine with one email only.
Altaf
  • 5,150
  • 10
  • 39
  • 55
-3
votes
1 answer

C2DM and GCM via GooglePlay Services endpoints

I am in need of specific information about which endpoint(s) (domain name and port) are used to send messages to an Android device via legacy C2DM. I am also in need specific information about which endpoints(s) (domain name and port) are used to…
1 2 3
46
47