firebase-notifications

Firebase Notification To Device with FCM Token Says Sent but not received

穿精又带淫゛_ 提交于 2019-11-30 14:46:41
I am attempting to send a simple push notification from the firebase notification console to a specific device using an FCM token. The firebase notification console shows the notification as sent but the device does not receive it. I have tried sending the notification and then waiting to see if the console logs from didReceiveRemoteNotification , but the notification takes too long (hours) to be shown as sent in the firebase console (even when I set the priority to high ). App Delegate import UIKit import Firebase import FirebaseStorage import FirebaseDatabase import FirebaseMessaging import

Firebase Cloud Messaging Doesn't Create Push Notifications but Gets Information

旧城冷巷雨未停 提交于 2019-11-30 11:02:09
I was working through this tutorial ( https://www.youtube.com/watch?v=JsWHzU1DxjM ) to try and put push notifications into my iOS app. I was able to successfully get the certificate for APNS and set the "push notification" and "background modes" capabilities to on. Also, Firebase is able to get the info from the notification when I send one from the firebase console. However, when the app is running in the background the banner notifications never appear. I feel like I may have had a problem converting the tutorial from Objective-C to Swift because the tutorial was in Objective-C, but I'm not

Push notification not received when App is in Background in iOS 10

倖福魔咒の 提交于 2019-11-30 09:58:11
I'm using FCM(Firebase Cloud Messaging) for sending push notifications in iOS. I'm able to receive the notification when App is in foreground state. But when the App is in background state, the notification is not received. Whenever the application will come to foreground state, only then will the notification be received. My code is: - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions))completionHandler { // Print message ID. NSDictionary *userInfo =

Firebase Notifications through server-side code

为君一笑 提交于 2019-11-30 04:08:06
The new Firebase notifications service allows us to use a Console UI to post notifications to all mobile app users. But I could not find any REST API for the Firebase Notifications Service. I want to send notifications to mobile users automatically through server-side code based on an event. Does Firebase Notifications Service have an API that can be accessed over HTTP/S? Yes,you can. 1) Firstly, get the server key of your firebase project: Project Settings -> Cloud Messaging Tab -> Copy the Server key. 2) Now, here is a sample php script to send notification to a specific device: <?php $ch =

FCM notifications and collapse_key

非 Y 不嫁゛ 提交于 2019-11-30 03:50:17
问题 I'm sending notifications to users Android devices though the Firebase Notification console and I notice that even if I send 10 different notifications while the user device is offline, once the user goes online she/he will receive all 10. However in Firebase documentation it is stated that: FCM allows a maximum of four different collapse keys per device to be used by the app server at any given time. In other words, the FCM connection server can simultaneously store four different

How to get the body of a push notification sent from Firebase console in iOS 10 and Swift 3?

爱⌒轻易说出口 提交于 2019-11-29 20:36:36
问题 I'm developing an iOS app that should receive push notifications sent from the Firebase console. I'm using Swift 3 and iOS 10. As recommended by the Firebase documentation, we must assign our delegate object to the UNUserNotificationCenter object to receive and display notifications, and the FIRMessaging object to receive data messages, before our app finishes launching. This has been done in the didFinishLaunchingWithOptions method. I followed all the steps in order to configure Firmessaging

Firebase Notification To Device with FCM Token Says Sent but not received

谁说我不能喝 提交于 2019-11-29 20:11:48
问题 I am attempting to send a simple push notification from the firebase notification console to a specific device using an FCM token. The firebase notification console shows the notification as sent but the device does not receive it. I have tried sending the notification and then waiting to see if the console logs from didReceiveRemoteNotification , but the notification takes too long (hours) to be shown as sent in the firebase console (even when I set the priority to high ). App Delegate

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

你离开我真会死。 提交于 2019-11-29 17:02:53
This question already has an answer here: Unable to send data message using firebase console 4 answers I have implemented FCM successfully in my project. Is it possible to push only data message from Firebase console. AL. 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 treated as a part of the data payload. But the message will be treated as having both Notification and Data payload. If you

Android not receiving Firebase Push Notification - MismatchSenderId

浪尽此生 提交于 2019-11-29 17:02:39
I'm trying to work on a messenger app, but the twist here is I have 2 Entities ( i.e. 2 apps A & B ) here. Now I'm trying to put messaging logic between the two using Firebase. Firebase doesn't support communication between two different applications ( A & B ) over the same project url . In order to overcome that restriction, I have used the same google-service.json of app A for app B as well. For app B, I have just changed the project id and auth key . That seems to have worked as I intended. I have tested the push notification as well using the Firebase Console and it seemed to have been

Push notification not received when App is in Background in iOS 10

回眸只為那壹抹淺笑 提交于 2019-11-29 14:55:20
问题 I'm using FCM(Firebase Cloud Messaging) for sending push notifications in iOS. I'm able to receive the notification when App is in foreground state. But when the App is in background state, the notification is not received. Whenever the application will come to foreground state, only then will the notification be received. My code is: - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)