android-c2dm

Android & (millions of) push notifications

筅森魡賤 提交于 2019-12-03 04:57:55
问题 I'm working on the Android version of an application I first created on iPhone and this application requires to send (if it's as successful as its iPhone version) up to millions of push notifications to users daily. I naively thought the Android platform had a push notifications service as its sibling so I decided to look at this feature at the end of development and now here i am! I searched stackoverflow for answers about this feature (issue ?) and found several options (thanks guys!) BUT

Simple implementation of Android C2DM required

陌路散爱 提交于 2019-12-03 04:32:05
I am trying to implement Android c2dm. I have looked into documentation and seen the jump note and chrome to phone samples that are provided... But i couldnt really figure out the process. It would be great if i could simple implementation of c2dm where in when we send a request from server, it displays simple notification... Plz help Please take a look at my open source project at: http://github.com/geeknam/Push-Contacts The server side is written in Python. If you are familiar with Python, the code would be very easy to digest. Good luck! I wrote this blog entry about writing a c2dm server

how to set valid time period for android c2dm message?

六眼飞鱼酱① 提交于 2019-12-02 23:22:44
问题 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? 回答1: Google just released a new version of c2dm called "Google Cloud Messaging (GCM)" at I/O 2012. With GCM its possible to define a timeout for your messages. GCM ttl section: http://developer.android.com/guide/google/gcm/adv.html#ttl You can find my answer to a similiar question here: https://stackoverflow

Ways to guess if C2DM is connected

帅比萌擦擦* 提交于 2019-12-02 20:45:54
I'm trying to place a best guess estimate as to whether C2DM messages can be received. I've created an application that relies on pushing information to a phone while it is physically inaccessible. I understand that C2DM isn't guaranteed delivery, but I'd at least like to know when the delivery of a message is even possible; when it isn't we fall back to our own push service (and can actually tell when we're connected). I've noticed C2DM on android will still issue auth tokens even when there is not a logged in google account; messages still seem to be delivered in this instance even though it

How to set a timeout/expiration on a C2DM message?

家住魔仙堡 提交于 2019-12-02 20:27:38
问题 Is there a TTL or expiration or some sort of timeout feature for C2DM messages? I would like the C2DM message to be received within 10 minutes by the device, any longer (ie: if their phone is off) and the C2DM message should not be received by the device. I could probably implement something in the device to ignore any C2DM messages if they are old, but I'm not sure how accurate that would be with different device time settings. A TTL flag on the C2DM message sent to google would be perfect,

Android “hello world” pushnotification example [closed]

我的未来我决定 提交于 2019-12-02 14:09:55
I am new to android application development and I am learning little bit. I am in a hard mission for sending push notification ( cloud messaging ) from my web server ( PHP ) to android application ( just a "helloworld" ). I did some "googling" and few of my doubts are Google is sending notification using our "device id" right ? Is there any code needed in our application other than adding some permission in out manifest for receiving notification ? We have to register user's device id to "local database" in order to send notification am I ? Please help me Plus can any one please show me a code

how to set valid time period for android c2dm message?

扶醉桌前 提交于 2019-12-02 13:28:26
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? domi Google just released a new version of c2dm called "Google Cloud Messaging (GCM)" at I/O 2012. With GCM its possible to define a timeout for your messages. GCM ttl section: http://developer.android.com/guide/google/gcm/adv.html#ttl You can find my answer to a similiar question here: https://stackoverflow.com/a/9709944/789738 C2DM itself doesn't have such a facility so you have two choices: Your server app

Using PushBots for android push notification

。_饼干妹妹 提交于 2019-12-02 08:08:32
问题 I am trying to use pushbot for android push notification. it works fine if when the application is running. But for instance if the application is not running and a push notification arrives, it starts the app and then crashes it. Any suggestion to the cause of this problem? 回答1: Make sure you've copied PushBots.jar file into libraries folder of your android project. Extended the Application Class, and initialized PushBots in its onCreate method, check out steps 6,7 click here for more

c2dm : how to receive the message in the device? (using PHP)

放肆的年华 提交于 2019-12-02 05:29:48
问题 I have the registration id and auth token for c2dm. And then I pass store these values in db. and using php, i could send one message to c2dm server. But my problem is I dont know how to receive the message in the application. I am not sure whether my way of getting the message is correct or not. Anyway i will give it below. I have one activity which registers to the c2dm using registration intent. and one receiver to receive the reg_id and notification message. it is registering with c2dm

Using PushBots for android push notification

こ雲淡風輕ζ 提交于 2019-12-02 04:44:45
I am trying to use pushbot for android push notification. it works fine if when the application is running. But for instance if the application is not running and a push notification arrives, it starts the app and then crashes it. Any suggestion to the cause of this problem? Make sure you've copied PushBots.jar file into libraries folder of your android project. Extended the Application Class, and initialized PushBots in its onCreate method, check out steps 6,7 click here for more details Here's a sample code: import com.pushbots.push.Pushbots; import android.app.Application; public class