firebase-notifications

Firebase Cloud Messaging - Send message to all users

谁说胖子不能爱 提交于 2019-12-28 03:10:15
问题 I'm new using the Firebase Cloud Message. I built an IOS app to receive push notifications. The app works fine. I send messages from the Firebase console and they're displayed correctly. Now I`m trying to build an web api to allow my customer to send the push messages (without accessing the firebase console). Studying the documentation here I realized that I've always to have a "to", meaning a group, topic or device id. My question is: can I send a message to all devices (like I can do in the

Notifications with Firebase from web

有些话、适合烂在心里 提交于 2019-12-25 07:59:54
问题 I have been working on an Android application and my customer that will use it want to send notifications is there any way to send notifications from a Web UI other than firebase console? 回答1: There is currently no public API to send Firebase Notifications. The Firebase Console is the only place for that. We're considering adding an API, which you could then use to build your own web site for your customer. See How to send firebase notifications to audience via HTTP 来源: https://stackoverflow

FCM Tap on how to open a User specified activity instead of default activity when app is in background state

天涯浪子 提交于 2019-12-25 00:14:00
问题 The FCM is working fine and notification came on device when app is in foreground state, and when tapped on notification, it is redirecting to my specified Activity, so it is working fine. But my challenge is when the notification comes when app is in background state and when tapped, it redirects to Default Activity but I want to navigate to specified activity. Here is MyFirebaseMessagingService class: public class MyFirebaseMessagingService extends FirebaseMessagingService { private static

App is reload If click firebase notification when app is in background

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 22:18:08
问题 When app is running and notification is alert if I click it ,notification is go to there ( onMessageReceived is running) but when app is in background and notification is alert if I click it, App is reload again (at first such as splash screen) ,not go to there and onMessageReceived is not running How to fix it? ps. sorry my english is not good. 回答1: You need to pass the required activity as intent, not the MainActivity 回答2: Give activity name to pending intent .... Intent intent = new Intent

Firebase Notifications not being received when app is in background even if data payload is passed

…衆ロ難τιáo~ 提交于 2019-12-24 09:18:36
问题 Now I know that if I send data messages, the notifications will come even if the app is in the background. But I am receiving no notifications whatsoever even after sending data messages. I'm using Postman for testing purposes and here's my body of my Postman Request: { "to" : (device token), "data" : { "body" : "great match!", "title" : "Portugal vs. Denmark", "content_available" : true, "priority" : "high", "sound": "default", "time_to_live":"2419200" } } And this is my onMessageReceived()

Swift 3 - Firebase Push Notification, How can I do?

安稳与你 提交于 2019-12-23 16:53:38
问题 I do like below in Swift 2. But It's not working in Swift 3. How Can I provide this? If someone explain this It would be great. didFinishLaunchingWithOptions let notificationSettings = UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil) UIApplication.sharedApplication().registerUserNotificationSettings(notificationSettings) application.registerForRemoteNotifications() and func application(application: UIApplication, didRegisterUserNotificationSettings

Firebase notifications are not sending as high priority

穿精又带淫゛_ 提交于 2019-12-23 15:34:15
问题 When I send a notification to my Android device through the Firebase web interface, the notification doesn't peek down from the status bar. If I want to see the notification, I must swipe down. This occurs even when I have the priority set to High in the web interface. Why is this? This is not an issue if the notification arrives when the app is open because I can set the priority myself in my FirebaseMessagingService class: public class MyFirebaseMessagingService extends

Are there any limitations for the FCM topics names?

风格不统一 提交于 2019-12-23 11:55:46
问题 I'm trying to find out if there are any limitations for the topic names for FCM. Managed to find info about the number of topics (no limitations), but nothing like length of topic name or allowed characters. 回答1: Yes, not all characters are allowed, having space between words is not allowed in topic names. From the docs: sending messages to a Firebase Cloud Messaging topic is very similar to sending messages to an individual device or to a user group. The app server sets the topic key in the

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

倾然丶 夕夏残阳落幕 提交于 2019-12-22 18:22:23
问题 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

Angular Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script

霸气de小男生 提交于 2019-12-22 08:52:22
问题 I am doing Push notifications in Angular PWA with Firebase and I am following a link to do so. https://medium.com/@tariqueejaz/progressive-web-app-push-notifications-making-the-web-app-more-native-in-nature-a167af22e004 I am using Angular 6 and have setup the code for everything. when I am trying to run it, then it is showing me a pop up . After clicking on Allow button, it is throwing an error on console: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when