firebase-cloud-messaging

When you are on flight mode and exit from the Flight mode, i am receiving only the last FCM push notification?

瘦欲@ 提交于 2020-12-12 18:16:34
问题 I am only receiving the last push notification(FCM) after exiting from the flight mode. However if my app is in foreground, I will get all the push notifications once i leave the flight mode . I have implemented FCM message type as notification message . NOTE: Can't Implement FCM message type as Data message due to the fact that only Notification message is accepted by APNS for my iOS counterpart . 来源: https://stackoverflow.com/questions/58911057/when-you-are-on-flight-mode-and-exit-from-the

How implement Push Notifications firebase xamarin.ios c#

耗尽温柔 提交于 2020-12-09 11:21:23
问题 I'm developing an application that works on the iPhone through the xamarin.ios with firebase backend. I want Push Notifications FCM Firebase , but I couldn't, I want that code in AppDelegate.cs 回答1: To implement Push Notifications firebase with xamarin.ios in C#, you can have a try with Xamarin.Firebase.iOS.CloudMessaging. And there are detailed steps about setting-up-a-firebase-cloud-messaging-client-app-on-ios there. Code example in AppDelegate and Sample project are also available.

How implement Push Notifications firebase xamarin.ios c#

冷暖自知 提交于 2020-12-09 11:19:31
问题 I'm developing an application that works on the iPhone through the xamarin.ios with firebase backend. I want Push Notifications FCM Firebase , but I couldn't, I want that code in AppDelegate.cs 回答1: To implement Push Notifications firebase with xamarin.ios in C#, you can have a try with Xamarin.Firebase.iOS.CloudMessaging. And there are detailed steps about setting-up-a-firebase-cloud-messaging-client-app-on-ios there. Code example in AppDelegate and Sample project are also available.

sending POST request to FCM not accepting authorization header in angular

无人久伴 提交于 2020-12-07 15:59:40
问题 So I'm trying to use FCM to send notifications from Angular web application to mobile app using Firebase cloud messaging.. but I'm getting 401 response "the request was missing an Authentication Key", I tested the the same request on POSTMAN and it was working but on angular it is not.. here is my my code : pushNotification(title , body){ this.http.post('https://fcm.googleapis.com/fcm/send' , { header: { 'Content-Type': 'application/json', 'Authorization' : 'key='+ environment.cloudMessages

sending POST request to FCM not accepting authorization header in angular

Deadly 提交于 2020-12-07 15:50:02
问题 So I'm trying to use FCM to send notifications from Angular web application to mobile app using Firebase cloud messaging.. but I'm getting 401 response "the request was missing an Authentication Key", I tested the the same request on POSTMAN and it was working but on angular it is not.. here is my my code : pushNotification(title , body){ this.http.post('https://fcm.googleapis.com/fcm/send' , { header: { 'Content-Type': 'application/json', 'Authorization' : 'key='+ environment.cloudMessages

Use 2 different firebase projects for FCM and Crashlytics with android

老子叫甜甜 提交于 2020-12-06 15:57:10
问题 I am trying to use 2 different Firebase projects with android, one for FCM and another for Crashlytics(say ProjectA for FCM and ProjectB for Crashlytics). But it's not working for me. I am initialising Firebase manually. As soon as my app starts I initialise Firebase for FCM using ProjectA configuration. val options = FirebaseOptions.Builder() .setProjectId(fcmOptions[5]!!) .setApplicationId(fcmOptions[0]!!) .setApiKey(fcmOptions[1]!!) .setDatabaseUrl(fcmOptions[2]) .setGcmSenderId(fcmOptions

How to test FCM push notification in simulator for iOS XCode 11.4?

試著忘記壹切 提交于 2020-12-06 13:25:30
问题 Is possible to test fcm iOS push notification in simulator or can I convert fcm push notification json format to apns format for testing in simulator? 回答1: Yes you can test push notifications on the simulator if using Xcode 11.4 or higher. “Simulator supports simulating remote push notifications, including background content fetch notifications. In Simulator, drag and drop an APNs file onto the target simulator. The file must be a JSON file with a valid Apple Push Notification Service payload

Open deep link url when click on Fcm notification

拈花ヽ惹草 提交于 2020-12-05 12:46:05
问题 I'm using Google's Fcm to send notification to my Android client I want to open specific screen with Deep Link url eg. example://my.app/products Here is endpoint to send notification using REST api https://fcm.googleapis.com/fcm/send Content-Type: application/json Authorization: key={SERVER_KEY} { "to" : "{Firebase client token}", "collapse_key" : "type_a", "notification" : { "body" : "Body of Your Notification", "title": "Title of Your Notification" "click_action": "example://my.app/products

firebase_messaging flutter plugin crashing on startup if handling background messages

情到浓时终转凉″ 提交于 2020-12-05 12:03:28
问题 I integrated firebase_messaging v5.1.6 with my flutter app as mentioned in README with "handling of background messages" option. Here are how my files look. MyApplication.kt class MyApplication : FlutterApplication(), PluginRegistrantCallback { override fun onCreate() { super.onCreate() FlutterFirebaseMessagingService.setPluginRegistrant(this) } override fun registerWith(registry: PluginRegistry) { GeneratedPluginRegistrant.registerWith(registry) } } firebase_util.dart import 'package

Open activity on firebase notification received in foreground

妖精的绣舞 提交于 2020-12-01 10:05:39
问题 When my application is open and I receive a notification I want to be able to open the activity associated immediately without the need of the user to tap on the notification. This question is very similar: Open app on firebase notification received (FCM) But it opens the app when it is in background, I need to do it when my app is in foreground. From the firebase documentation: Notifications delivered when your app is in the background. In this case, the notification is delivered to the