google-cloud-messaging

(New) GCM message received, but how to parse?

南笙酒味 提交于 2019-12-21 03:33:34
问题 I am working with the "new" GCM, part of Google Play Services, that does not use jars for both Android and server. Android uses Google Play apk to register, receive and even send messages. At server side all we need to communicate with GCM is to do a POST to their server (if not using XMPP). I have all set: my Android app registers and waits for messages coming from GCM. My server can communicate with GCM and I'm able to deliver messages to my Android app. The problem: I'm using a common jar

How Google Cloud Messaging Service in Android Works?

你离开我真会死。 提交于 2019-12-21 03:30:49
问题 I want to use GCM Service in my application. I have referred to the following link (Android Developer: Google GCM) but was not able to install the GCM Library in my eclipse. From the SDK manager I am not getting GCM Library in the Extras Folder. Can anyone please help me? 回答1: I had similar issues and it was resolved once I updated Android SDK Tools to revision 20 and Android Platform SDK Tools to revision 12. Rev 19/11 would not shown up Extras > Google Cloud Messaging for Android Library in

What is authorizedEntity? Can't find gcm_defaultSenderId in own app

与世无争的帅哥 提交于 2019-12-21 03:11:17
问题 I am trying to get my app running with Google Cloud Messaging. I am following the Google Cloud Messaging Quickstart App which can be found here on github. In their quickstart app at some point we ask the Google Cloud Messaging service for a registration token so that this instance of our app can talk to the cloud. I find this line of code: RegistrationIntentService.java::onHandleIntent(Intent intent): InstanceID instanceID = InstanceID.getInstance(this); String gcmRegistrationToken =

Google Cloud Messaging over XMPP protocol (server working with PHP and XMPPHP). How does it work?

大兔子大兔子 提交于 2019-12-21 02:21:28
问题 maybe you heard already about it. It was announced at the Google IO maybe one month ago. Google Cloud Messaging was only downstream (server --> phone), but now with the enhancement CCS (cloud connection server) you can send messages upstream over a persistent TCP connection thanks the XMPP protocol. I have already designed an application which works with GCM and HTTP. It uses the gcm library and the classes that are packed in there (like GCMRegistrar). This classes are now deprecated, and

Can't connect to Google Cloud Messaging (GCM) server using Google App Engine (GAE)

断了今生、忘了曾经 提交于 2019-12-20 23:32:17
问题 I am trying to set up google cloud messaging for my app, and I am using Google App Engine for my server. I have my API key but I can't seem to make a connection to the google cloud messaging servers. Here is my code. HttpClient client = new DefaultHttpClient(); HttpPost post = new HttpPost("https://android.googleapis.com/gcm/send"); try { List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2); nameValuePairs.add(new BasicNameValuePair("registration_id", regId)); nameValuePairs

Are Android push notifications reliable? [closed]

血红的双手。 提交于 2019-12-20 19:42:13
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . I wonder if it's okay to use a push-notification message rather than a service, or in other words, if it is totally reliable the push notifications delivery. I know IOS is not trustable, but I am not sure if Google is guaranteeing the delivery. So, please enlighten me. 回答1: Nope

Gcm notification received after hours on some devices

非 Y 不嫁゛ 提交于 2019-12-20 18:12:51
问题 I am trying to use gcm notification. My server code is working fine and I am getting success as acknowledgment. The problem is notification is getting sent properly : 1) In most of devices notification is received instantaneously. Tested on google nexus,sony phones. 2) Other devices are also receiving notification but after several hours. Yes, hours . Tested on Karbonn, Micromax some phones. Note: All the devices are connected to the same wifi so network connectivity not an issue . Using php

Gcm notification received after hours on some devices

♀尐吖头ヾ 提交于 2019-12-20 18:09:59
问题 I am trying to use gcm notification. My server code is working fine and I am getting success as acknowledgment. The problem is notification is getting sent properly : 1) In most of devices notification is received instantaneously. Tested on google nexus,sony phones. 2) Other devices are also receiving notification but after several hours. Yes, hours . Tested on Karbonn, Micromax some phones. Note: All the devices are connected to the same wifi so network connectivity not an issue . Using php

GCM server using Google app-engine [closed]

大城市里の小女人 提交于 2019-12-20 15:03:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have just implemented the SDK samples for GCM client and server side. I implemented it with no problems using NetBeans(Glass Fish) as my server side and Eclipse as my client (Android). I now want to explore the use of Google App Engine as my server side. I downloaded the sample from the SDK but cant get it to

GCM server using Google app-engine [closed]

痴心易碎 提交于 2019-12-20 15:01:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have just implemented the SDK samples for GCM client and server side. I implemented it with no problems using NetBeans(Glass Fish) as my server side and Eclipse as my client (Android). I now want to explore the use of Google App Engine as my server side. I downloaded the sample from the SDK but cant get it to