google-cloud-messaging

Android - open or restart app after clicking push notification using flag activities

邮差的信 提交于 2019-12-18 19:19:39
问题 I am using push notifications in Android. When I receive a push notification, I want to open the application if it is still running, else it should open a new instance of it. I am using PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); But when I receive a push notification now and I click on it, nothing happens. How can I still achieve this by using

GCM push notification when iOS app is in the background

混江龙づ霸主 提交于 2019-12-18 16:56:45
问题 I'm trying to send push notifications to my iOS app with GCM. The app doesn't get the notification when it's in the background but it does when it's in the foreground. I was testing the push notifications with a PHP script also which sends the message directly to the APNS and it's working in the background. The JSON sent to GCM: (I'm sending it from a rest client for testing) { "to" : "token...", "notification" : { "title": "GCM TITLE", "body" : "FROM GCM", "badge": "1", "sound": "default" }

How many topics can we make in Firebase Cloud Messaging?

我怕爱的太早我们不能终老 提交于 2019-12-18 16:55:30
问题 I'm building an app where I am using Firebase Cloud Messaging. But I have some doubts. I want to know how many topics we could make in one app instance? In official docs it writes that when a single app instance subscribes to an excessive number of topics it retrieves error TOO_MANY_TOPICS . I want to know how many topics is allowed. I know that we don't have constraints about number of subscribers and that is okay, but I want to know how many topics could we make in one app instance.

Amazon SNS: “Platform credentials are invalid” when re-entering a GCM API key that previously worked

我的未来我决定 提交于 2019-12-18 14:54:14
问题 We have been using Amazon SNS to send Android push notifications since April this year. Pushes have sent with no problem, however there has never been any record of calls to the Cloud Messaging API in the Cloud Console (seems odd?). Today I created a new API key for the Static Map service (unrelated) and renamed our Cloud Messaging API key (only the name, the key is the same). From this point no pushes have been sent, and trying to create a new platform application (or update the existing one

GCM notification not received on one of the mobile devices

自作多情 提交于 2019-12-18 13:54:14
问题 I am trying to send GCM notification to the device xiaomi redmi 1s, not getting the notification on the device while the same notification is getting delivered to the other devices and the failure for message count is 0.Can anyone please tell the issue.I have debugged it not received any call on onMessage method. not got any message in the app either in the foreground or in the background state of the application, the registration id is correct checked it in IDE.GCM response is "success":2,

2 users using same device and same app but different login id -do they have different gcm registration id?

喜你入骨 提交于 2019-12-18 13:35:21
问题 I have created table with user_id(unique sno based on email-id) and GCM_id of each user .There are 2 questions I have namely, Can 2 users with different email_id login from the same device and receive gcm w.r.t that user? How do I create and maintain columns in my database.Basically what are the columns I need for getting gcm working if user has installed app on different devices(Mobile,tab-Android) but same email_id ? I was referring to Android Hive link but someone said that its gcm(2012)

Google Chrome Silent Push Notifications

北城余情 提交于 2019-12-18 13:15:52
问题 I've been reading through the docs for Chrome's implementation of the Web Push API here, and I noticed the API says "you promise to show a notification whenever you receive a push" and under limitations it's stated "you have to show a notification when you receive a push message". After implementing the example on my localhost, I used cURL to send a push notification successfully. I was curious, so I commented out the lines that actually call the showNotification function, and put in a

google Cloud Messaging Push notification

时光毁灭记忆、已成空白 提交于 2019-12-18 12:54:31
问题 Can I use POSTMAN client on Google Chrome to send payload message to GCM server for testing purpose. Secondly if yes, what is the header and url parameter to be sent. 回答1: Yes, you can. 1. Send a notification with a JSON payload URL: https://android.googleapis.com/gcm/send Headers: Authorization: key=<your-api-key> Content-Type: application/json Body (click on the 'raw' tab): { "collapse_key": "score_update", "time_to_live": 108, "delay_while_idle": true, "data": { "score": "4x8", "time": "15

push silent notification through GCM to Android/IOS

主宰稳场 提交于 2019-12-18 12:23:41
问题 I'm seeking to send an state update to an application, which can (or not), be silent. For example, if the user gets a new message from one of their friends I want to send such message and be able to display an alert with sound. But in the silent case, I want the user not to notice such notification. it must be gathered by the application; for example if my user has two devices and he changes his name in one of them, I want to send the other device (which is sleeping) a silent name update,

Does Firebase Cloud Messaging support VOIP pushkit services?

柔情痞子 提交于 2019-12-18 12:17:16
问题 Does anyone has an idea about Firebase Cloud Messaging support VOIP pushkit services. If yes then can someone please do provide guidelines for same. Same thing which is implemented in Skype / Hangout / WhatsApp or any other VOIP based apps. Thanks in advance. 回答1: At time of writing (FirebaseMessaging 1.1.0/Firebase 3.2.0) FCM uses regular APNs underneath on iOS, so there isn't support for PushKit notifications. 回答2: I got PushKit + Firebase working via node-apn. Simply install it via npm to