firebase-notifications

Firebase Push Notifications not received if app is closed

烈酒焚心 提交于 2019-12-22 04:43:39
问题 I'm testing Firebase Push notifications, sending a notification from the Firebase composer panel, and I noticed that if I close the app process from App Information panel, the push notifications sent doesn't reach the device. Even if I start again the app the notification is lost and is never received. I also tryed this: close the app process -> shut down the device -> power on the device -> send a notification... and the notification is not received! It seems that firebase can only receive

Notifications tracking when using FCM

六月ゝ 毕业季﹏ 提交于 2019-12-21 05:12:07
问题 Is it possible to track the notification status, whether it was opened or canceled by the user, when I send a push notification without using firebase services dashboard? I am using Advanced REST client and I would like to record data about the notifications status when sending payload to https://fcm.googleapis.com/fcm/send 回答1: Conversion tracking is only built into Firebase Notifications. I don't think we have a public API to feed into those charts. But if you send your messages through

Firebase Notifications - Invalid reg token, please check token format in Android

青春壹個敷衍的年華 提交于 2019-12-20 03:19:11
问题 ![enter image description here][1] If I send push message by selecting a package from Firebase console, the push goes to all devices, but during sending to individual device, it displays the error: Invalid reg token,please check token format Error Snapshot: [ ][1] 回答1: UserID in console is not the registration token for Firebase messaging. By Firebase docs: on initial startup of your app, the FCM SDK generates a registration token for the client app instance. If you want to target single

Unable to insert record into SQLite Database from Firebase Message Service when app is in background or closed state

一笑奈何 提交于 2019-12-20 02:26:27
问题 I am trying out Firebase Notifications. I was able to get the Notification to work properly using this documentation. The message was received and I was able to send a notification to the Notification Bar from within the MyFirebaseMessagingService service class. This happens even when the app is in background or closed. What I need is to collect the data sent in the notification and insert it into an SQLite database. The code I wrote works fine if the app is in foreground, but it does not

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

How to retrieve notification message intent.getExtras() when app is background FCM

泄露秘密 提交于 2019-12-19 05:32:08
问题 I am using FCM for Simple notification When the app is in foreground, everything working properly. I am getting a notification plus the data message inside the onMessageReceived method. But when app is in background, I am getting notification in system tray. And when I click on the control, it goes to the main activity. And When I parse intent.getExtras(); , I am getting only this key data - google.sent_time , from , google.message_id , collapse_key . How to get the notification message title

Firebase database transaction when app is in background iOS

旧巷老猫 提交于 2019-12-18 09:07:31
问题 I am working with interactive push notifications, when i reply to a PN, which should be updating firbase databsae. It doesn't works well because some times if the app is in background the data is not synced in real time. but when u open the app it pushes the data if the app is in a killed state the reply is not even send to Firebase DB Ref.child(uId).runTransactionBlock({ (currentData: FIRMutableData) -> FIRTransactionResult in var value = currentData.value as? [String : AnyObject] if value =

FCM Notification in iOS doesn't play sound when received

被刻印的时光 ゝ 提交于 2019-12-18 04:43:07
问题 I am using Firebase push notifications in my iOS Application. Although I am able to send the notification by sending below payload, it doesn't play a sound when received. { "to": "myToken", "notification": { "body": "test", "title": "test" }, "priority": "high" "sound": "default" } If I send the test message from console, it works well and plays notification sound. Note : My Authorization code is correct I am sending http request to https://fcm.googleapis.com/fcm/send I have tested it on

Firebase when receive Push Notification did not receive the popup

99封情书 提交于 2019-12-17 22:49:48
问题 import Firebase import FirebaseInstanceID import FirebaseMessaging func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { registerForPushNotifications(application) FIRApp.configure() // Add observer for InstanceID token refresh callback. NSNotificationCenter .defaultCenter() .addObserver(self, selector: #selector(AppDelegate.tokenRefreshNotificaiton), name: kFIRInstanceIDTokenRefreshNotification, object: nil) // Override