google-cloud-messaging

GCM Not Sending the Notifications

懵懂的女人 提交于 2019-12-28 19:27:48
问题 I have created a application that uses the GCM functionality. When I am posting the message from the server to the device in response i am getting the message id. After sending the message from the server when I am again running the application then I am getting the response on the device. It is not coming as a notification like GMAIL notification once app is installed when the server sends message it will show notification. I am posting my complete server and client code.Please help me to

Google Cloud Messaging: don't receive alerts when iOS App is in background

假如想象 提交于 2019-12-28 04:21:10
问题 I have followed this tutorial https://developers.google.com/cloud-messaging/ios/client to implement GCM on my iOS Application. My app server is a google app engine written in Java and I use the gcm-server.jar https://github.com/google/gcm library. I think my certificates are fine and I can register, get a token and even receive the content of the messages sent by my app server. However, I don't receive any notification alerts when the app is in background, I always receive it only when I

Google Cloud Messaging: don't receive alerts when iOS App is in background

 ̄綄美尐妖づ 提交于 2019-12-28 04:21:07
问题 I have followed this tutorial https://developers.google.com/cloud-messaging/ios/client to implement GCM on my iOS Application. My app server is a google app engine written in Java and I use the gcm-server.jar https://github.com/google/gcm library. I think my certificates are fine and I can register, get a token and even receive the content of the messages sent by my app server. However, I don't receive any notification alerts when the app is in background, I always receive it only when I

GCM http 401 authorization error

…衆ロ難τιáo~ 提交于 2019-12-28 03:39:08
问题 When my backend server sends post requests to GCM servers I get an authorization error HTTP 401. I followed the steps described here: http://developer.android.com/google/gcm/http.html#auth_error >> api_key=AIzaSyDEy3... >> curl --header "Authorization: key=$api_key" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_id\":\"ABC\"}" I get this: <HTML> <HEAD> <TITLE>Unauthorized</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1

How to group android notifications like whatsapp?

≡放荡痞女 提交于 2019-12-28 02:42:10
问题 I don´t know how to group two or more notifications into only one and show a message like "You have two new messages". 回答1: Steps to be taken care from the below code. NotificationCompat.Builder:contains the UI specification and action information NotificationCompat.Builder.build() :used to create notification (Which returns Notification object) Notification.InboxStyle: used to group the notifications belongs to same ID NotificationManager.notify():to issue the notification. Use the below

How to fix INSTALL_PARSE_FAILED_MANIFEST_MALFORMED in my android application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-28 02:07:06
问题 Hi I am trying to experiment with gcm but unable to make it work. Don't know where I am messing with it, below is the error I am getting. I am trying to deploy my application directly on device and debug from there but when ever I try to deploy it gives this error Waiting for device. Target device: HT24LW108632 Uploading file local path: D:\Data\Android\AndroidTest\out\production\AndroidTest\AndroidTest.apk remote path: /data/local/tmp/Android.Test Installing Android.Test DEVICE SHELL COMMAND

Which port and protocol does Google Cloud Messaging (GCM) use?

感情迁移 提交于 2019-12-28 01:29:27
问题 Which port and protocol does Google Cloud Messaging (GCM) use? We experience some times that messages doesnt get through, and have noticed that it depends on which network we sitting on. 回答1: The device accesses the GCM servers on ports 5228-5230. Note: If your organization has a firewall that restricts the traffic to or from the Internet, you'll need to configure it to allow connectivity with GCM. The ports to open are: 5228, 5229, and 5230. GCM typically only uses 5228, but it sometimes

Send Message Using GCM [closed]

久未见 提交于 2019-12-25 18:46:05
问题 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 want to know whether it is possible for sending a notification from one android mobile to android mobile via a local server? 回答1: You don't need a server. Send: Your phone can perform a HTTP POST to Google's servers of some JSON describing the sender/registration ids (along with the message), which then passes

Send Message Using GCM [closed]

梦想与她 提交于 2019-12-25 18:46:02
问题 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 want to know whether it is possible for sending a notification from one android mobile to android mobile via a local server? 回答1: You don't need a server. Send: Your phone can perform a HTTP POST to Google's servers of some JSON describing the sender/registration ids (along with the message), which then passes

GCM Android 4.0.4 cant get message

假如想象 提交于 2019-12-25 18:38:13
问题 I followed the example from developers.google.com and create simple services for retrieve Token and messages from GCM. Class for token receive public class RegistrationIntentService extends IntentService { private static final String TAG = "RegIntentService"; private static final String[] TOPICS = {"global"}; private String projectNumber = "gcm-test-xxxxx"; public RegistrationIntentService() { super(TAG); } @Override protected void onHandleIntent(Intent intent) { SharedPreferences