google-cloud-messaging

NotificationManager.notify creating notifications that are *initially* missing contentText

拈花ヽ惹草 提交于 2020-06-28 07:25:10
问题 When posting a push notification to the Notifications List/Bar, the .contentText and the .number are initially not displayed (.ticker, .icon and .contentTitle display fine). However, after posting another notification (with a different ID), when the first one gets bumped down in the list, it then displays the content text and number. And then the new one is missing the text, and so on. Since I'm using the millisecond timer to create a unique ID, I don't think it's possible for me to be

Protocol used for sending push notification in Android

陌路散爱 提交于 2020-06-09 11:19:10
问题 I want to know which protocol is used to send push notification to android devices and which to send push notification requests to GCM. Whether it is HTTP, HTTPS or some thing else? 回答1: The protocols of the communication between the 3rd party server and GCM server (HTTP or XMPP) were already mentioned in the other answers. The protocol of the communication between the device and GCM server is not discussed in the GCM documentation, since you never have to access it directly as an Android

Protocol used for sending push notification in Android

人盡茶涼 提交于 2020-06-09 11:19:10
问题 I want to know which protocol is used to send push notification to android devices and which to send push notification requests to GCM. Whether it is HTTP, HTTPS or some thing else? 回答1: The protocols of the communication between the 3rd party server and GCM server (HTTP or XMPP) were already mentioned in the other answers. The protocol of the communication between the device and GCM server is not discussed in the GCM documentation, since you never have to access it directly as an Android

Android GCM- Register Id and Project Id

爱⌒轻易说出口 提交于 2020-05-14 10:25:29
问题 I can't get register id with my project id Can i get new project id with different google account for same project. 回答1: follow the steps below: launch your application check if register-id if register id is empty string then check for any error messages in ddms if there is no error messages then a) Check whether senderid is correct. b) Check your manifest permissions if there are error messages then can you paste it here? genereally what happens when application launches first time it take

Size of notification payload in GCM/FCM

眉间皱痕 提交于 2020-05-09 21:47:04
问题 This question was originally referring to Google Cloud Messaging (GCM), but now it also applies to the new Firebase Cloud Messaging (FCM) that replaces GCM. I would like to know how to calculate the size of a GCM payload when it contains a "notification" dictionary. I have been trying the Google Cloud Messaging service for Android. Some parts of the documentation say you can send up to 4KB of data, and here it says "A notification message can have a maximum of 2kb payload". Doing some tests I

Size of notification payload in GCM/FCM

会有一股神秘感。 提交于 2020-05-09 21:44:20
问题 This question was originally referring to Google Cloud Messaging (GCM), but now it also applies to the new Firebase Cloud Messaging (FCM) that replaces GCM. I would like to know how to calculate the size of a GCM payload when it contains a "notification" dictionary. I have been trying the Google Cloud Messaging service for Android. Some parts of the documentation say you can send up to 4KB of data, and here it says "A notification message can have a maximum of 2kb payload". Doing some tests I

Size of notification payload in GCM/FCM

梦想的初衷 提交于 2020-05-09 21:44:08
问题 This question was originally referring to Google Cloud Messaging (GCM), but now it also applies to the new Firebase Cloud Messaging (FCM) that replaces GCM. I would like to know how to calculate the size of a GCM payload when it contains a "notification" dictionary. I have been trying the Google Cloud Messaging service for Android. Some parts of the documentation say you can send up to 4KB of data, and here it says "A notification message can have a maximum of 2kb payload". Doing some tests I

How to send a push notification from the Firebase console to a specific GCM/FCM device token ID

泄露秘密 提交于 2020-03-13 14:00:05
问题 In Urban Airship, when I am composing a notification, I can target specific users by searching for a Urban Airship channel_id (device ID): I sent from Urban Airship the push notification that I am showing above, and I received it successfully. Now I want to do the same thing, send a push notification to a specific device, but now using the Firebase console. The problem is that in Firebase, in the step where I need to specify the target , it only allows me to choose User segment or topic . I

Different “from:” values received from GCM CCS server upstream msg from the same client

蹲街弑〆低调 提交于 2020-02-27 09:41:43
问题 I'm using the GCM demo application provided by google (repository URL). When receiving upstream XMPP messages in my app server, consecutive tokens received from the same client differ in their " from " key, is that how it's supposed to be ? From what I understand, " from " key should always point to a static GCM registration ID obtained by client and thus should not change (at least per each upstream message !). Here are 3 consecutive upstream messages converted to json I recieve from the app

How to make a GCM / FCM notification-type message non-collapsible

眉间皱痕 提交于 2020-02-27 09:05:11
问题 Google Cloud Messaging (GCM) support two types of push messages: "notification" messages and "data" messages. According to the documentation, notification messages are collapsible by default, while data messages are non-collapsible by default. In order to make a data message collapsible, you need to specifiy a collapseKey . My question is: How can you make a notification message non-collapsible? Note: The question applies to Firebase Cloud Messaging (FCM) as well. 回答1: The message concepts