firebase-cloud-messaging

Flutter- FCM with Local notification and alert

﹥>﹥吖頭↗ 提交于 2020-12-19 03:58:40
问题 This is first time I am testing FCM with Flutter. I checked some of the SO questions and documents from GitHub. I am able to send the notifications and they are getting delivered when the app is not running. If app is running or in the background then messages are not visible. I have added the code in main.dart file but not sure this is the correct way or not. Edit: This is for onResume: {notification: {}, data: {badge: 1, collapse_key: com.HT, google.original_priority: high, google.sent_time

Flutter- FCM with Local notification and alert

跟風遠走 提交于 2020-12-19 03:58:31
问题 This is first time I am testing FCM with Flutter. I checked some of the SO questions and documents from GitHub. I am able to send the notifications and they are getting delivered when the app is not running. If app is running or in the background then messages are not visible. I have added the code in main.dart file but not sure this is the correct way or not. Edit: This is for onResume: {notification: {}, data: {badge: 1, collapse_key: com.HT, google.original_priority: high, google.sent_time

Flutter- FCM with Local notification and alert

耗尽温柔 提交于 2020-12-19 03:58:05
问题 This is first time I am testing FCM with Flutter. I checked some of the SO questions and documents from GitHub. I am able to send the notifications and they are getting delivered when the app is not running. If app is running or in the background then messages are not visible. I have added the code in main.dart file but not sure this is the correct way or not. Edit: This is for onResume: {notification: {}, data: {badge: 1, collapse_key: com.HT, google.original_priority: high, google.sent_time

Hypertrack is preventing FCM notification in Flutter

旧巷老猫 提交于 2020-12-15 07:53:09
问题 When I use hypertrack_plugin along with firebase_messaging in Flutter, I am not able to receive any message in Android. However, it works fine in iOS. Version of hypertrack_plugin: 0.1.3 Version of firebase_messaging: 7.0.3 回答1: UPDATE This issue has been fixed in the plugin update which is in the version hypertrack_plugin: 0.1.4 Problem You are facing this issue because there is multiple service class that extends from FirebaseMessagingService . Because of this, messages are received in one

Android : Call a Fragment Method from a service

做~自己de王妃 提交于 2020-12-15 06:46:24
问题 Have a Firebase Cloud messagin Service running , and i want each time i receive a new message a methode in a specif fragment is called. public class FirebaseMsgService extends FirebaseMessagingService { public FirebaseMsgService() { } @Override public void onMessageReceived(RemoteMessage remoteMessage) { super.onMessageReceived(remoteMessage); ServiceConnector serviceconnector =null; JSONObject data; String json = remoteMessage.getData().toString(); try{ data= new JSONObject(json); **Fragment

iOS Firebase Cloud Messaging Notifications not being received after using .p8 file

寵の児 提交于 2020-12-13 07:43:56
问题 I followed all the steps below and added the appropriate imports and code in App Delegate . I also made sure I allowed Notifications to be accepted when I ran the app. Following the steps below, why is it that I can't receive the Notifications after I send one from the Firebase Cloud Messaging Console ? In my Developer account I went to Certificates, Identifiers & Profiles Under Keys , I selected All and clicked the Add button (+) in the upper-right corner Under Key Description , I entered a

iOS Firebase Cloud Messaging Notifications not being received after using .p8 file

女生的网名这么多〃 提交于 2020-12-13 07:43:35
问题 I followed all the steps below and added the appropriate imports and code in App Delegate . I also made sure I allowed Notifications to be accepted when I ran the app. Following the steps below, why is it that I can't receive the Notifications after I send one from the Firebase Cloud Messaging Console ? In my Developer account I went to Certificates, Identifiers & Profiles Under Keys , I selected All and clicked the Add button (+) in the upper-right corner Under Key Description , I entered a

iOS Firebase Cloud Messaging Notifications not being received after using .p8 file

蓝咒 提交于 2020-12-13 07:43:29
问题 I followed all the steps below and added the appropriate imports and code in App Delegate . I also made sure I allowed Notifications to be accepted when I ran the app. Following the steps below, why is it that I can't receive the Notifications after I send one from the Firebase Cloud Messaging Console ? In my Developer account I went to Certificates, Identifiers & Profiles Under Keys , I selected All and clicked the Add button (+) in the upper-right corner Under Key Description , I entered a

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:17:54
问题 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

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:17:04
问题 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