android-c2dm

App Engine Connected Android : can't make sample project work properly

爱⌒轻易说出口 提交于 2019-12-02 03:44:22
问题 I want to make an App Engine connected Android app, and I'm beginning with google's tutorial available here : http://code.google.com/intl/fr/eclipse/docs/appeng_android_create_project.html I did exactly as they did (registered into C2DM service, installed plugins, signed on in eclipse with my google acc, etc...), but when I launch the sample app (with "Debug as" > "Local App Engine connected Android Application") and I click on the button "say hello", I get the message "Failure: Connection to

App Engine Connected Android : can't make sample project work properly

不问归期 提交于 2019-12-02 02:33:50
I want to make an App Engine connected Android app, and I'm beginning with google's tutorial available here : http://code.google.com/intl/fr/eclipse/docs/appeng_android_create_project.html I did exactly as they did (registered into C2DM service, installed plugins, signed on in eclipse with my google acc, etc...), but when I launch the sample app (with "Debug as" > "Local App Engine connected Android Application") and I click on the button "say hello", I get the message "Failure: Connection to http://127.0.1.1:8888 refused. I deployed Server side package on GAE, removed file debugging_prefs

Notifications don't come through when the app is closed

放肆的年华 提交于 2019-12-02 01:59:38
问题 I've got an Android app with push notifications set up using Urban Airship. The notifications work fine while my app is open but I need to still receive notifications when my app is closed. I've looked around but haven't found something that works. I'm pretty sure the problem is in my manifest, so here it is. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="za.co.foo.android.financials" android:versionCode="1" android

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

∥☆過路亽.° 提交于 2019-12-02 01:48:22
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 and not to receive message. manifest <intent-filter> <action android:name="com.google.android.c2dm.intent

Notifications don't come through when the app is closed

[亡魂溺海] 提交于 2019-12-01 21:44:50
I've got an Android app with push notifications set up using Urban Airship. The notifications work fine while my app is open but I need to still receive notifications when my app is closed. I've looked around but haven't found something that works. I'm pretty sure the problem is in my manifest, so here it is. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="za.co.foo.android.financials" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="11" /> <uses-permission android:name="android.permission

C2DM server. Should we use OAuth now?

假如想象 提交于 2019-12-01 21:11:19
I'm implementing C2DM for my Android app. Client side (Android) went well, but I'm little bit confused on implementing server side. My server is C#/.NET. Official documentations links to 404 when it comes to authentication: https://developers.google.com/android/c2dm/#handling_reg I found another page: https://developers.google.com/accounts/docs/AuthForInstalledApps But it says deprecated. So, I'm not sure what to do now. Go with deprecated functionality or learn how to use OAuth? (never done this before) If I go with OAuth - what should I pass in here: Authorization: GoogleLogin auth=[AUTH

broadcast intent callback: result=CANCELLED forIntent

匆匆过客 提交于 2019-12-01 20:24:30
问题 I have a mobile app, that registers to a c2dm server. I have a server that sends a message to my app, to push a notification. The server receives ok result code from google c2dm. In LogCat i see that my app receives the message but immediately produces the error i have in my post. And also the notification that i created is ignored. 08-10 16:28:09.157: W/GTalkService(13962): [DataMsgMgr] broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com

broadcast intent callback: result=CANCELLED forIntent

你离开我真会死。 提交于 2019-12-01 19:04:51
I have a mobile app, that registers to a c2dm server. I have a server that sends a message to my app, to push a notification. The server receives ok result code from google c2dm. In LogCat i see that my app receives the message but immediately produces the error i have in my post. And also the notification that i created is ignored. 08-10 16:28:09.157: W/GTalkService(13962): [DataMsgMgr] broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.example.c2dmclient (has extras) } i don't get it. My manifest file is: <manifest xmlns:android="http:/

Android C2DM : Duplicate message to the same device and App

做~自己de王妃 提交于 2019-12-01 15:58:34
I'm wondering if anyone has faced this issue with Google C2DM ? This is the scenario I am faced with: User installs the app and registers with C2DM server for a registration key. User uninstalls the app. User reinstalls the app (and registers with C2DM server for new registration key). Now I send message from my server to the user's phone and they get a duplicate message. Could anyone shed any insight into wether this is expected behaviour or how I can fix it? Thanks, Not sure if this is the best approach, but there's a relevant thread over at the android-c2dm group, where the poster offers

Register the Android App with C2DM

半城伤御伤魂 提交于 2019-12-01 12:06:29
I am using the Emulator of version 8. and when i am trying to register the Android Application then it will gives the null registration ID. Please help me to resolve this issue. How can i register the Android Application with C2DM.My code is to register the App. Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER"); registrationIntent.putExtra("app", PendingIntent.getBroadcast(startCode.this, 0, new Intent(), 0)); // boilerplate registrationIntent.putExtra("sender", "12786@gmail.com"); startService(registrationIntent); handleRegistration(getApplicationContext(),