firebase-cloud-messaging

How to fix app crash on recieving FCM Push Notification built on Flutter

时光怂恿深爱的人放手 提交于 2021-01-27 22:56:27
问题 I have built an app on Flutter and was trying to send Push Notifications through FCM. Earlier it was working but after changing the version of Firebase messaging the app crashes as soon as I send a push notification. I haven't made any changes in the Code per se. I looked into the GitHub issues but couldn't resolve it. This is the code I have been using in the main.dart file. final FirebaseMessaging _firebaseMessaging = FirebaseMessaging(); void initState() { super.initState();

Firebase push notification doesn't use Android string resource from body_loc_key

旧街凉风 提交于 2021-01-27 21:21:38
问题 I have a backend server that pushes cloud messages to iOS and Android devices. In the messages, the body_loc_key attribute is set to someone_commented_moment , and body_loc_args contains three string arguments. The Firebase documentation says about the body_loc_key : On Android, use the key in the app's string resources when populating this value. So on Android, I have a strings.xml which contains this entry: <resources> [...] <string name="someone_commented_moment"> \@%1$s also commented on

How to add and remove Android notification channels in Delphi Rio10.3.2

∥☆過路亽.° 提交于 2021-01-27 21:10:04
问题 I would like to implement multiple notification channels for Android on an FMX project. RAD 10.3.2 now provides some support for API >= 26 and a "fallback" notification channel is automatically created. Its default description is "Notification channel for Firebase" and I would like to change this description as well as to add some new channels. In RAD 10.3.2, the new Options/Application/Services parameters provide a "Default local notification channel Id" which, I suppose, is there to change

Python Firebase Admin SDK appears successful but I never receive the notification

我们两清 提交于 2021-01-27 16:42:42
问题 I'm attempting to use the Python Firebase Admin SDK to send push notifications for my mobile app. I've tested it with the notification composer in the Firebase Console, so I know my device can receive push notifications, but when I try to use the SDK I never receive anything. Nor do I see the notification listed on the Firebase console notification page. Here's the exact code(minus my personal info) that I'm using to send the notification: import firebase_admin from firebase_admin import

Using Firebase Cloud Messaging with Windows Application

纵然是瞬间 提交于 2021-01-27 07:46:37
问题 I use Firebase Cloud Messaging with my android and iOS app, however I have also a windows / Mac OS version of this app and I would like to keep the same logic. I know that Firebase Cloud Messaging can work with website via Javascript, so is there any way I can follow to make my windows application to work with this javascript version of Firebase Cloud Messaging? 来源: https://stackoverflow.com/questions/43513627/using-firebase-cloud-messaging-with-windows-application

Using Firebase Cloud Messaging with Windows Application

南楼画角 提交于 2021-01-27 07:44:59
问题 I use Firebase Cloud Messaging with my android and iOS app, however I have also a windows / Mac OS version of this app and I would like to keep the same logic. I know that Firebase Cloud Messaging can work with website via Javascript, so is there any way I can follow to make my windows application to work with this javascript version of Firebase Cloud Messaging? 来源: https://stackoverflow.com/questions/43513627/using-firebase-cloud-messaging-with-windows-application

Using Firebase Cloud Messaging with Windows Application

a 夏天 提交于 2021-01-27 07:43:26
问题 I use Firebase Cloud Messaging with my android and iOS app, however I have also a windows / Mac OS version of this app and I would like to keep the same logic. I know that Firebase Cloud Messaging can work with website via Javascript, so is there any way I can follow to make my windows application to work with this javascript version of Firebase Cloud Messaging? 来源: https://stackoverflow.com/questions/43513627/using-firebase-cloud-messaging-with-windows-application

React Native - Android - FCM - Display group notification like What's app also allowing multiple grouped notifications

风格不统一 提交于 2021-01-26 22:50:46
问题 I want to display a group notification instead of multiple notifications like whatsapp does. For eg: One notification with message - "2 discussions 1 comment" instead of total three notifications. I used react-native-fcm library (https://github.com/evollu/react-native-fcm) I used group & tag keys but couldn't achieve the result as below code FCM.presentLocalNotification({ title: 'Title', body: 'Body', priority: "high", click_action: true, show_in_foreground: true, local: true, group: 'group1'

React Native - Android - FCM - Display group notification like What's app also allowing multiple grouped notifications

感情迁移 提交于 2021-01-26 22:50:36
问题 I want to display a group notification instead of multiple notifications like whatsapp does. For eg: One notification with message - "2 discussions 1 comment" instead of total three notifications. I used react-native-fcm library (https://github.com/evollu/react-native-fcm) I used group & tag keys but couldn't achieve the result as below code FCM.presentLocalNotification({ title: 'Title', body: 'Body', priority: "high", click_action: true, show_in_foreground: true, local: true, group: 'group1'

How to use process.env in a React service worker

为君一笑 提交于 2021-01-26 05:37:22
问题 I am trying to set-up a Firebase-messaging-sw.js file (for web push notifications). I am wondering if there is a way to avoid exposing my Firebase config data to the public as much as possible - though it might be revealed anyways? (I'm not too sure about the nuances) I've tried following: How can I customize my Service Worker based on environment variables? But the answer's swEnvbuild doesn't seem to be running, as the swenv.js file is not found. I suspect it might need to be set-up