firebase-cloud-messaging

How to start specific screen when notification appear in flutter

≡放荡痞女 提交于 2020-05-28 04:36:07
问题 I am using firebase_messaging for notification, everyting is work fine. I have a video calling screen I want to start this screen on notification when app in background. It's working fine when application in foreground. here is my firebase integration code: final FirebaseMessaging _firebaseMessaging = FirebaseMessaging(); _firebaseMessaging.configure( onMessage: (Map<String, dynamic> message) async { Map data = message["data"]; if (data.isNotEmpty){ Fcm.startRinging(data); } else {

Unhandled Promise rejection: this._next is not a function : Zone in @angular/fire/messaging

a 夏天 提交于 2020-05-26 04:40:49
问题 When I am receiving firebase push notifications in the foreground, by using @angular/fire/messaging . The method is: this.angularFireMessaging.messages.subscribe( (payload) => { console.log("new message received. ", payload); this.currentMessage.next(payload); }) Let me share my complete code: PushNotificationsService Code I have written. My Angular-cli versions: Angular CLI: 8.1.3 Node: 12.4.0 OS: linux x64 Angular: 8.1.3 ... animations, cli, common, compiler, compiler-cli, core, forms ...

Unhandled Promise rejection: this._next is not a function : Zone in @angular/fire/messaging

守給你的承諾、 提交于 2020-05-26 04:39:17
问题 When I am receiving firebase push notifications in the foreground, by using @angular/fire/messaging . The method is: this.angularFireMessaging.messages.subscribe( (payload) => { console.log("new message received. ", payload); this.currentMessage.next(payload); }) Let me share my complete code: PushNotificationsService Code I have written. My Angular-cli versions: Angular CLI: 8.1.3 Node: 12.4.0 OS: linux x64 Angular: 8.1.3 ... animations, cli, common, compiler, compiler-cli, core, forms ...

Issue with nuget package Xamarin.Firebase.iOS.CloudMessaging 3.1.2

别来无恙 提交于 2020-05-24 05:50:31
问题 I get many error messages if I install the Xamarin.Firebase.iOS.CloudMessaging 3.1.2 nuget package. Error: linker command failed with exit code 1 (use -v to see invocation) Error MT5210: Native linking failed, undefined symbol: _FIRLogBasic. Please verify that all the necessary frameworks have been referenced and native libraries are properly linked in. Error MT5211: Native linking failed, undefined Objective-C class: FIROptions. The symbol '_OBJC_CLASS_$_FIROptions' could not be found in any

How to get Firebase user id from FCM token? (in admin code on server)

ε祈祈猫儿з 提交于 2020-05-23 10:49:29
问题 My signed-in Android clients register their tokens with my server. The problem is I am not sure whether the token sent by a particular client genuinely belongs to that client user id. A bad client could register valid tokens of other users. Given an FCM token and a user id, how can my admin code on the server verify that the token indeed belongs to the (authenticated) user id? 回答1: On a Firebase level there is no connection between a Authentication UID, and a Cloud Messaging Instance ID token

Sending notification sound with flutter firebase_messaging plugin

点点圈 提交于 2020-05-16 16:13:28
问题 I am trying to get my application to send a notification to a user which will alert them with their default notification sound. So far, I am using the plugin firebase_messaging with the following code: Message firebaseMessage = Message() ..to = token ..body = body ..title = title; firebaseCloudMessage.send(firebaseMessage); This allows me to send a notification to a selected user and display it on their home screen. The only problem is, it does not play a sound on iOS or give Apple Watch

Is it possible to receive FCM push notification when app is killed?

匆匆过客 提交于 2020-05-11 03:27:52
问题 I am developing an e-mail app in which I want that the user will get push notification as soon as they receive new email. And for that purpose I am using FCM. I have just tried push notifications using fcm by following this link: https://www.youtube.com/watch?v=XijS62iP1Xo&t=6s in order to test what features fcm provides. But the problem I face is that device recieve push notification when app is either in foreground or background but it wont receive any push notifications when app is closed

Size of notification payload in GCM/FCM

眉间皱痕 提交于 2020-05-09 21:47:04
问题 This question was originally referring to Google Cloud Messaging (GCM), but now it also applies to the new Firebase Cloud Messaging (FCM) that replaces GCM. I would like to know how to calculate the size of a GCM payload when it contains a "notification" dictionary. I have been trying the Google Cloud Messaging service for Android. Some parts of the documentation say you can send up to 4KB of data, and here it says "A notification message can have a maximum of 2kb payload". Doing some tests I

Size of notification payload in GCM/FCM

会有一股神秘感。 提交于 2020-05-09 21:44:20
问题 This question was originally referring to Google Cloud Messaging (GCM), but now it also applies to the new Firebase Cloud Messaging (FCM) that replaces GCM. I would like to know how to calculate the size of a GCM payload when it contains a "notification" dictionary. I have been trying the Google Cloud Messaging service for Android. Some parts of the documentation say you can send up to 4KB of data, and here it says "A notification message can have a maximum of 2kb payload". Doing some tests I

Size of notification payload in GCM/FCM

梦想的初衷 提交于 2020-05-09 21:44:08
问题 This question was originally referring to Google Cloud Messaging (GCM), but now it also applies to the new Firebase Cloud Messaging (FCM) that replaces GCM. I would like to know how to calculate the size of a GCM payload when it contains a "notification" dictionary. I have been trying the Google Cloud Messaging service for Android. Some parts of the documentation say you can send up to 4KB of data, and here it says "A notification message can have a maximum of 2kb payload". Doing some tests I