firebase-notifications

How to send firebase notifications to audience via HTTP

流过昼夜 提交于 2019-11-26 14:09:27
问题 In Firebase Console I set up audiences based on various user properties and now am able to send notifications to different user segments via console. Is there a way to do the same by http requests to fcm servers? There should be a trick with "to" field, but I couldn't figure it out. 回答1: firebaser here There is currently no way to send a notification to a user segment programmatically. It can only be done from the Firebase Console as you've found. We're aware that allowing this through an API

Firebase chat Push Notifications

天大地大妈咪最大 提交于 2019-11-26 14:09:07
问题 I am developing a chat app using Firebase as backend. It is required that on every new message receiver gets a push notification saying that he got a new message. This is first time I am doing something like this so I have a question: Since we do not use our own server for this, do we need a 3rd party provider (like Batch for example) for handling push notifications? If I am not mistaken I think Firebase does not support sending push notifications like this but only ones you send from console

Firebase console: How to specify click_action for notifications

前提是你 提交于 2019-11-26 12:09:29
问题 I implemented Firebase and testing the Firebase notifications. When the app is in the foreground I don\'t have problems, I implemented a service that extends FirebaseMessagingService and handle the message and data in onMessageReceived I have problems when the app is in background, I would like to send a notification that opens a specific activity and does what I schedule to do, not just opening the App. I did as described on the Firebase guide, but I\'m not able to start the specific

FCM Schedule delivery date or time of push notification

强颜欢笑 提交于 2019-11-26 11:22:18
I have working with FCM console to send push notification and it has an option to schedule the delivery date. But in the references, this API is not documented as an option. I need to know if its possible to push a notification with predefined delivery date through a POST request. AL. If you're looking for a public API of FCM for a scheduled push or a payload parameter where you can set the push date, unfortunately, there's nothing like it as of the moment. You must implement your own App Server and implement the scheduled push yourself (also mentioned it here ). 来源: https://stackoverflow.com

What is FCM token in Firebase?

◇◆丶佛笑我妖孽 提交于 2019-11-26 11:20:47
In the new Firebase, under Notification, they have mentioned that developer can send notification to a particular device. For that, in console it asks for an FCM token. What is it exactly and how can I get that token? What is it exactly? An FCM Token, or much commonly known as a registrationToken like in google-cloud-messaging . As described in the GCM FCM docs : An ID issued by the GCM connection servers to the client app that allows it to receive messages. Note that registration tokens must be kept secret. How can I get that token? Update : The token can still be retrieved by calling

Open app on firebase notification received (FCM)

一笑奈何 提交于 2019-11-26 10:23:21
I want to open application automatically when notification is received, is this possible with Firebase and new FCM notifications? I know I can set click_action but that's only for customizing which activity will start on notification click, I need something that will start automatically when notification is received. I tried the quick start messaging firebase sample and there is a onMessageReceived() method but it only works if the app is in foreground. Is there something that will execute while app is in background as well? GCM could do something like what I want here by directly starting

Open specific Activity when notification clicked in FCM

感情迁移 提交于 2019-11-26 09:37:57
问题 I am working on App in which I am required to show notification. For notification, i am using FireBase Cloud Messaging (FCM) . I am able to get Notification when app is in background. But when I click on notification, it redirect to home.java page. I want it to redirect to Notification.java page. So,please tell me how to specify Activity in on Click of notification. I am using two services: 1.) MyFirebaseMessagingService 2.) MyFirebaseInstanceIDService This is my code sample for

How To Create Topic in FCM Notifications

血红的双手。 提交于 2019-11-26 08:48:24
问题 I\'m trying Firebase-Notification API the service is worked perfect when i send downstream message from console to app, but how to send message to topic registered users ? i did in android side FirebaseMessaging.getInstance().subscribeToTopic(\"TopicName\"); but when i try send downstream message from console to topic it\'s says This project does not have any topics EDIT : i figured out that after mapping the topic it\'s take up to 1 day to show up in Firebase Console 回答1: This is an

Topics on Firebase Cloud Messaging?

假装没事ソ 提交于 2019-11-26 08:32:19
问题 Is there any constraints about number of different topics for Firebase Cloud Messaging in one app? 回答1: Nope. Seeing that FCM has GCM as its core, there is no limit in the number of Topics for any app. There used to be a 1 million limit, but it was removed. You can refer to this Google Developers Blog for that. Also, when creating a Topic in FCM, it could take up to 24 hours for it to be show up in the Firebase Console, as per this post. Cheers! :D 回答2: No I don't think so! Based on the

Firebase push notifications update DB

谁都会走 提交于 2019-11-26 08:23:23
问题 I\'m trying to send some data to my users via the new Firebase push notifications service. I\'m adding some \"key-value\" custom data items with \'Message text\' - \"dbupdate\" to detect if it\'s an update message or a normal push notification that I want to show my users. In my receiver I check i there is custom data and run the update, if true. If this isn\'t the case, I show a normal notification with the text message. It works only when my application opened. If the application is closed,