android-c2dm

c2dm server with C#

我的梦境 提交于 2019-11-29 08:47:44
Do anyone know if its possible to create a c2dm serverside with C#? How do i add the required parameters (email, password etc)? Here is the core of a basic prototype C# server I created. class C2DMPrototype { // Hardcoded for now private const string RegistrationId = "XXXXXXXXXXX"; private const string GoogleAuthUrl = "https://www.google.com/accounts/ClientLogin"; // TODO : Production code should use https (secure) push and have the correct certificate private const string GoogleMessageUrl = "http://android.clients.google.com/c2dm/send"; private const string PostWebRequest = "POST"; private

How to collapse Android notifications?

Deadly 提交于 2019-11-29 08:39:10
I'm sending a C2DM update to my Android app every 1/2 hour, which creates a Notification. Problem is, when I wake up in the morning I get 15 Notifications queued up in the status bar. How do I only keep the latest notification, overwriting previous ones? I tried looking at the C2DM documentation ( http://code.google.com/android/c2dm/ ) which mentions a parameter called collapse_key, but I couldn't find an explanation for how to use it, nor am I sure the solution lies on the C2DM side. Thanks! If you want to cancel any previous notifications that has been set on the view you can try setting one

Is GCM service reliable for large scale push notification?

可紊 提交于 2019-11-29 08:09:07
I want to push notifications to around 50,000 users at a time and about 50 notifications per day, is it a good choice to use GCM in this case? If not can i know which other push services can i use , i dont mind even if its a paid service.. Thanks in advance One notification can send only to 1000 devices (GCM limit).So you must split your array of devices. 50.000 users its ok for GCM. Our application serve 100.000 users. As case you can use airpush notification service: http://www.airpush.com/ I think that GCM is a good choice to use. It's reliable and using it helps to conserve battery and

Unable to Deploy Android App Engine Project on Google App Engine

谁都会走 提交于 2019-11-29 07:01:07
I am create one smile application in Android + Google App Engine in eclipse. i am trying to deploy that app on Google app Engine but it show the error message Log Cat : Unable to update: com.google.appengine.tools.admin.HttpIoException: Error posting to URL: https://appengine.google.com/api/appversion/getresourcelimits?app_id=AppEngineTest2&version=1& 400 Bad Request Client Error (400) The request is invalid for an unspecified reason. at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:282) at com.google.appengine.tools.admin

Android C2DM getting (401) Unauthorized

六眼飞鱼酱① 提交于 2019-11-29 04:55:24
I have an Android application with an ASP.NET backend. I have the registration_id for the phone as well as an auth token from google for the application server that is performing a push. When I make the http post request to C2DM so that the phone gets a message I keep getting the 401 Unauthorized. Here is how I'm making the request in .NET: WebRequest myRequest = WebRequest.Create("https://android.apis.google.com/c2dm/send"); myRequest.ContentType = "application/x-www-form-urlencoded"; myRequest.Method = "POST"; myRequest.Headers.Add("Authorization", "GoogleLogin auth=" + authId); // buiold

Android two player game to be played in internet

纵饮孤独 提交于 2019-11-29 03:43:52
I have developed a simple two player chess game in android to be played using Bluetooth. I want to extend it by making it possible to be played through internet. whenever a player makes a move, the move should be transferred to the other player via internet. How to make this possible? I have heard of C2DM mechanism.Does that suites the scenario i described and is it reliable? Thanks:) Another option is to use some sort of IM as a communication medium for app. For eg. Use Asmack to connect to XMPP Im like GTalk. Prompt user to create an account there, for your game. And use it to send and

C2DM TO Google Cloud Messaging (GCM)

独自空忆成欢 提交于 2019-11-29 02:46:58
问题 As you may have seen, Google is migrating its Push Notification System. Google Developer guide for GCM I guess I am not alone wondering : are the tokens obtained from C2DM still valid for GCM ? If not, it means that I need all my users to update my app with a new version updating the tokens on my servers ... OR I can keep the parallel systems which is something I don't think it's a good solution OR Continue using C2DM until it's finished, then I die with it :-) 回答1: Although client side

Push notifications / C2DM for Kindle Fire?

流过昼夜 提交于 2019-11-29 01:41:51
AFAIK, push notifications require a Google account to work (they piggyback on GTalk), so does that mean for apps for the Kindle Fire are doomed if they use the standard C2DM approach? I couldn't find any info on push in the Kindle Fire FAQ or anywhere on the web. As far as I know yes. Everything I have read indicates that Amazon stripped C2DM support out of the Fire. I know right? If you or your users are willing to root it, installing Google services is an option. Urban Airship has a push service named Helium which purportedly works with Kindle Fire. I have yet to be able to try it though.

java.lang.RuntimeException: WakeLock under-locked C2DM_LIB

旧街凉风 提交于 2019-11-28 18:08:07
I have uploaded my application on google play but users have reported the following exception java.lang.RuntimeException: WakeLock under-locked C2DM_LIB . This exception occurs when I try to release the WakeLock . Can anyone tell what could be the problem. HitOdessit I have traced same exception in new GCM Library too. Actually old C2DM Android library have same error, same crash, and Google hasn't fixed it yet. As I can see by our statistics, about 0.1% of users experiencing this crash. My investigations shows that problem is in incorrect releasing of network WakeLock in GCM library, when

Android C2DM Push Notification

浪尽此生 提交于 2019-11-28 16:45:37
I am developing one application and in that application I need to implement push notifications. Can anyone suggest how I should go about implementing push notifications? If I could be provided with a good tutorial, that would be great! Thanks. SBJ // Call when your application start public void StartRegistrationNotification() { Intent registrationIntent = new Intent("com.google.android.c2dm.intent.REGISTER"); registrationIntent.putExtra("app", PendingIntent.getBroadcast(this, 0, new Intent(), 0)); registrationIntent.putExtra("sender", "....@gmail.com"); this.startService(registrationIntent); }