firebase-notifications

How to send firebase notification for all user at a time? [closed]

谁说胖子不能爱 提交于 2019-12-08 09:42:00
问题 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 have an application which sends notification for multiple users at a time(not all user). So how to do this using Firebase Push Notification? 回答1: You can use Topic Messaging Based on the publish/subscribe model, FCM topic messaging allows you to send a message to multiple devices

Firebase Push notification is not playing sound when app is in background

╄→尐↘猪︶ㄣ 提交于 2019-12-08 01:38:51
问题 I've implemented Android Push Notifications using Firebase Cloud Messaging FCM from AndroidHive but the notification has not sound when application is in background. Can anyone help me to set sound on firebase background notification? 回答1: make sure Sound is active like this if deosn't work please check the official documentation Firebase Documentation 来源: https://stackoverflow.com/questions/43478311/firebase-push-notification-is-not-playing-sound-when-app-is-in-background

How to receive eventbus events when Activity is in the background

浪尽此生 提交于 2019-12-07 23:48:58
问题 I want to get notification message using Firebase Notification service. I'm sending message from Firebase, it is ok. I want to get this notification if user run in MainActivity also I want to show pop-up using dialog. If user run other activities for example SettingActivity or ProfileActivity , notification handle anyway and user run MainActivity pop-up appear suddenly. To do this I'm using Greenbot Eventbus. When I'm inside MainActivity and notification comes It appears so it is ok. But When

Firebase, send message to specific platform (Android)

丶灬走出姿态 提交于 2019-12-07 22:54:48
问题 Firebase allows us to send messages by accepting our post requests: { "data": { "score": "5x1", "time": "15:10" }, "to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1..." } However, all examples which are shown in their docs are for specific users. That requires their registration keys. In Firebase Dashboard we can send messages to devices by choosing specific platform. What kind of parameter is required in order to send message for specific application package? for example: kz.mycompany.myapp

FCM - Get Message Label

不羁的心 提交于 2019-12-07 04:59:08
问题 To send a message from FCM backend, we have this view : I wanna to get the message label ( libellé du message ) from RemoteMessage . When I debug for the field, the content in the message is labeled as google.c.a.c_l , which I think is an internal field. 回答1: First, I just wonder the same as your question. But after read the document here and played around with it, I found that: You cannot get the message label on client device, because it is just a label for display on firebase console only.

How to send Firebase message to specific application in project?

流过昼夜 提交于 2019-12-07 04:21:51
问题 I have a doubt based on firebase. It allows to add multiple application for a single project. I have added App1, App2 and App3. How can I send a notification to App1 alone? Server key is the same for those 3 apps. 回答1: In the Notifications panel in the Firebase Console, you can send a notification message to a specific app. But there is no support for such targeting in the Firebase Cloud Messaging API. You can easily emulate the behavior though, by defining a specific property for each of

FCM - Not Receiving Notifications when the app is relaunched

别来无恙 提交于 2019-12-06 14:54:26
问题 I migrated to Firebase Cloud Messaging for push notifications. Every thing works great , I get notifications whenever the app is open or running in background , but when the app is closed and a message is sent from the server then you don't receive it in the device ( obviously ). Now when I reopen the app , I should get the pending notification ( the notification sent while the app was closed ) but I don't get the notification. This is my FireBaseMessagingService class public class

Firebase Push notification is not playing sound when app is in background

[亡魂溺海] 提交于 2019-12-06 12:27:10
I've implemented Android Push Notifications using Firebase Cloud Messaging FCM from AndroidHive but the notification has not sound when application is in background. Can anyone help me to set sound on firebase background notification? make sure Sound is active like this if deosn't work please check the official documentation Firebase Documentation 来源: https://stackoverflow.com/questions/43478311/firebase-push-notification-is-not-playing-sound-when-app-is-in-background

Firebase, send message to specific platform (Android)

偶尔善良 提交于 2019-12-06 11:56:18
Firebase allows us to send messages by accepting our post requests: { "data": { "score": "5x1", "time": "15:10" }, "to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1..." } However, all examples which are shown in their docs are for specific users. That requires their registration keys. In Firebase Dashboard we can send messages to devices by choosing specific platform. What kind of parameter is required in order to send message for specific application package? for example: kz.mycompany.myapp With Firebase Cloud Messaging, you have a few ways to address to whom messages are sent: to a specific

Firebase Cloud Messaging: how to send data message to all users? [duplicate]

断了今生、忘了曾经 提交于 2019-12-06 11:41:13
This question already has answers here : How do you send a Firebase Notification to all devices via CURL? (8 answers) Closed 9 months ago . I would like to send data messages to all users. Is it possible to do it programmatically, without using the Firebase Notifications Console ? The problem with the Console is that the "message text" field at the beginning of the form is compulsory. So, even if I add the custom data key/values, there will also be the standard notification component. As stated here , when the message includes both notification and data, in case the app is in the background, a