firebase-cloud-messaging

Is it possible to schedule Push Notifications with Firebase? [duplicate]

时光毁灭记忆、已成空白 提交于 2019-12-20 02:30:45
问题 This question already has an answer here : Schedule a push notification with Firebase Cloud Messaging [duplicate] (1 answer) Closed 2 years ago . I have read every piece of documentation I could find but still do not know if this is possible. Can I schedule push notifications for a specific time if I am a user? Example: 1) I am a user and open the app 2) I allow notifications and go to a pickerView(or anything else) and set a time say at 10AM 3) Now everyday I receive a push notification only

Can i use firebase cloud messaging without notification permission? (Javascript)

孤者浪人 提交于 2019-12-19 19:47:11
问题 Update: Google Bug Report Description (as suggested by google dev advocate in comments on answer 1, filed a bug report; updating the content here since it more succinctly and precisely describes the problem) I do not need or want to show any notifications to my user. And many users are not willing to give notifications permission because they assume they will start seeing notifications. But I wish to push data to my web page from the server. The web page is active and in the foreground. This

Android: Delay in Receiving message in FCM(onMessageReceived)

时间秒杀一切 提交于 2019-12-19 12:29:09
问题 In Test app, I have implemented FCM for sending notification messages using https://github.com/firebase/quickstart-android/tree/master/messaging For testing I sent the message( 8:42 PM ) from firebase console using the "New Message" under Notification. But in my emulator, I have received the message at 9:06 PM Please let me know if there is anything to do reduce the delay. Thank you. 回答1: This could be caused by the unrealistic heartbeat intervals in Firebase Cloud Messaging. FCM works by

Google-services.json : What goes in the 'api_key' section to enable Firebase push notifications?

断了今生、忘了曾经 提交于 2019-12-19 11:57:13
问题 I want to enable Firebase Cloud Messaging for push notifications for my Android app. In the google-services.json file needed for push notifications there's a field called "api_key". Right now I have "api_key": [{ "current_key": "" }] Should I put the Web API Key I see on my Firebase Console? 回答1: The api_key value in google-services.json is not used by FCM. (it is used by other Firebase libraries) Generally speaking do not touch the google-services.json that is provided by the Firebase

Forbid users to subscribe to Firebase topics

烈酒焚心 提交于 2019-12-19 11:54:18
问题 How can I eliminate the opportunity of an app user to call FirebaseMessaging.subscribeToTopic(String) in order to handle topic management only server side? 回答1: Firebase Cloud Messaging topics are public. There is no way to prevent specific users from subscribing to them. 来源: https://stackoverflow.com/questions/44615006/forbid-users-to-subscribe-to-firebase-topics

Firebase notification is not working when activity is in background or not

核能气质少年 提交于 2019-12-19 11:46:17
问题 I have same coding as provided by firebase sample code. It works fine when activity is in foreground state or opened. But when activity is closed or in background state then it does not work properly. Problem is like that... App icon is not shown of application. By default take app name as a title of notification And when app is in background state or not opened on device that time notification occurs then LogCat shows following details : 09-16 15:55:56.056 12113-12113/com.testdemofb D

FCM Notifications not getting called in background for Oreo

北战南征 提交于 2019-12-19 11:37:12
问题 I am using FCM notifications for chat when user is not connected to xmpp. There are 2 modes of Notifications in FCM 1. Notifications Message 2. Data Messages I an using Data messages as Notification messages won't come if my app is cleared from recents This approach is working fine for all the version except Oreo. For Oreo, I only get notifications if the app is not connected to xmpp and in foreground. My onMessageReceived method is getting called. But the same is not happening when the app

Does a notification message count towards the collapse_key limit?

孤者浪人 提交于 2019-12-19 11:23:14
问题 As per the Firebase Notification docs: Notification messages are always collapsible. I was trying to figure out if they have some intrinsic collapse_key . And if so, does that count towards the collapse_key limit of 4 per device? 回答1: You are correct. All the notifications sent from the Web Console are collapsible. Which means they have an implicit collapse_key If a device has a pending-to-be-delivered messages from the Web Console, this implicit collapse_key counts towards the limit of 4 per

Is it possible to get push notification stats like count of deliveries and opens when sending messages through Firebase notification API?

吃可爱长大的小学妹 提交于 2019-12-19 11:21:16
问题 We are about to switch to Firebase notifiaction API from Parse.com (that are retiring their service in jan 2017) to send push notification to our android and iOS Apps. My question now is that I can't see any statistics about counts of successful deliveries and opens in the Firebase Console for a specific message ? The only thing we get when posting to https://fcm.googleapis.com/fcm/send is a message_id {"message_id":123456789} But I havn't seen any documentation on a api how to follow up a

Android background notifications with Firebase Cloud Messaging not received

隐身守侯 提交于 2019-12-19 10:31:13
问题 I've searched a lot about notifications when the app is in the background or closed. I'm using Firebase Cloud Messaging by the way. It won't work for me. I've used the Android setup and when the app is in the foreground or the phone is not locked the notification is received. When installed the token is printed correctly and subscribed to the topic. When I send a notification when the app is active in the foreground (so screen is unlocked and app is shown) I receive the notification and title