firebase-notifications

Not Seeing “Opened” Firebase Notification Stats

给你一囗甜甜゛ 提交于 2020-02-02 06:31:22
问题 I'm manually handling firebase notifications by overriding the onHandle intent of the FirebaseMessagingService. And using the intent I generate a notification. Is there a way to manually report the notification opened to the Firebase at all because I'm not getting opened statistics reported back to the firebase console. As above, even when letting firebase notifications get handled per normal, these open notifications are not being reported either. Thanks! 回答1: The stats shown in the

How to get custom data from android firebase notification?

五迷三道 提交于 2020-02-01 04:01:10
问题 I'm trying to implement firebase notifications. But I have trouble finding any documentation on how to retrieve custom data from firebase notification. But in in code how to get the custom key. I'm using FirebaseMessagingService.onMessageReceived to get the message data. @Override public void onMessageReceived(RemoteMessage remoteMessage) { // TODO(developer): Handle FCM messages here. // If the application is in the foreground handle both data and notification messages here. // Also if you

Firebase messaging not working for “data” messages in iOS

↘锁芯ラ 提交于 2020-01-23 12:42:46
问题 I have an app running on iOS 9.3.5. I need to be able to send a push notification to my app when it's in the foreground or background. I don't actually need to include any data, I just need to ping the app so it will " phone home ". So I don't need/want the user to see any notifications. Since the company is already using Firebase for their Android app, I've set that up in the iOS app. If I send a message to https://fcm.googleapis.com/fcm/send with the notification key in the payload, it's

Firebase messaging not working for “data” messages in iOS

随声附和 提交于 2020-01-23 12:41:29
问题 I have an app running on iOS 9.3.5. I need to be able to send a push notification to my app when it's in the foreground or background. I don't actually need to include any data, I just need to ping the app so it will " phone home ". So I don't need/want the user to see any notifications. Since the company is already using Firebase for their Android app, I've set that up in the iOS app. If I send a message to https://fcm.googleapis.com/fcm/send with the notification key in the payload, it's

iOS: Invalid registration token. Check the token format

左心房为你撑大大i 提交于 2020-01-23 06:13:58
问题 I am new for Firebase as well as for iOS. I am trying to send push notification using FCM. I registered an iOS app on FCM. Both .p12 certificates added. Code developed according to FCM. While sending notification through the Firebase Console, I'm getting the error Invalid registration token. Check the token format. . I don't what mistake I did. 回答1: There are two tokens you get at iOS side Token generated by iOS which is received in method didRegisterForRemoteNotificationsWithDeviceToken

How to send Image with firebase Push Notification using swift 3

安稳与你 提交于 2020-01-22 20:27:47
问题 Can any one help me to send notification like this: I'm using Firebase Notifications. I tried to put the image URL in value of Advanced options and key 1 when I send my notification. The image URL appears in the debugger, but no image appears when notification appears in my device. This is My Code. import UIKit import UserNotifications import Firebase import FirebaseInstanceID import FirebaseMessaging @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window:

Can we push only data message from Firebase Notification console [duplicate]

南笙酒味 提交于 2020-01-20 08:28:10
问题 This question already has answers here : Unable to send data message using firebase console (4 answers) Closed 3 years ago . I have implemented FCM successfully in my project. Is it possible to push only data message from Firebase console. 回答1: Unfortunately, no. When sending messages through the Firebase Console, it will be treated as a notification payload and will be handled as such. You can however, include custom key-value pairs in the Advance Options section in the console, this will be

Can we push only data message from Firebase Notification console [duplicate]

蹲街弑〆低调 提交于 2020-01-20 08:27:05
问题 This question already has answers here : Unable to send data message using firebase console (4 answers) Closed 3 years ago . I have implemented FCM successfully in my project. Is it possible to push only data message from Firebase console. 回答1: Unfortunately, no. When sending messages through the Firebase Console, it will be treated as a notification payload and will be handled as such. You can however, include custom key-value pairs in the Advance Options section in the console, this will be

How do I send notifications from Google Cloud(GCP) via Firebase to an Android app

我只是一个虾纸丫 提交于 2020-01-16 11:26:18
问题 I know how to send messages from Firebase cloud messaging portal to an android device. But my server runs on Google Cloud, I do gcloud app deploy from my local machine and the app logic gets deployed on Google Cloud. Now, I want to send notifications, based on the data stored as Entities in GCP Datastore, to an Android App. Notification messages can be sent from Firestore-Cloud Messaging portal to an Android device, if I could harness this Firestore Cloud Messaging API in my GCP logic, then

FCM Notification with payload in device's system tray not getting passed to App

时间秒杀一切 提交于 2020-01-11 13:24:53
问题 Android app is running in the background state. Created a notification message in the Firebase Console with payload in the Advanced options. After receiving the notification and shown on the device's system tray, clicking on the notification just goes back to the app and the data payload was not delivered in the extras on the intent of the launcher activity. The notification does not open the app launcher by default as specified in the documentations. Why is it that the notification in the