firebase-cloud-messaging

Update Firebase Realtime Database after specific time [duplicate]

被刻印的时光 ゝ 提交于 2020-08-26 12:46:21
问题 This question already has answers here : Cloud Functions for Firebase trigger on time? (2 answers) Closed 2 years ago . Consider the following database in JSON format stored in firebase - "root": { "survey": { "1": { "survey_question":"Who is a better player?", "option1":"Ronaldo", "option2":"Messi", "time_posted":7854123265, "visibility":1 }, "2": { "survey_question":"Who is a better singer?", "option1":"Ed Sheeran", "option2":"Chris Martin", "time_posted":9865321245, "visibility":1 } } } I

How to display action buttons in Android notification when app is closed?

旧城冷巷雨未停 提交于 2020-08-26 09:13:43
问题 I have an android app. With notifications we have to display some action buttons. When the app is open we have the liberty to construct the notification and display the action buttons. But when app is closed the notification is received in notification tray in android. Where an app developer don't have control to build ui and action buttons. how can we show the buttons now ? How the data is formatted from server side so that when it is received in app , we can see action buttons 回答1: Based on

Is it possible to implement notification grouping/bundling using FCM in Flutter?

梦想的初衷 提交于 2020-08-24 04:49:30
问题 I try to implement group notification like this android group notification and ios group notification. But I can't able to do it. I tried this flutter_local_notification plugin too. but this works only when app open. not working on foreground(onResume) and background. void registerNotification() { _fcm.configure( onMessage: (Map<String, dynamic> message) { return; }, onResume: (Map<String, dynamic> message) { return; }, onLaunch: (Map<String, dynamic> message) { return; }, onBackgroundMessage

Notify user when a date is near

有些话、适合烂在心里 提交于 2020-08-22 19:15:30
问题 I'm currently working on an Android app that uses several Firebase functions. In the Realtime Database I have a date (the date a book is due) and I need to notify the user when that date is near (say, 1 day before the date in the database). Firebase cloud functions doesn't seem to have a specific trigger to do this, as nothing in the database is changing. I have seen this thread, which can set an alarm/notification for a future date, but I don't know how to stop it once it's been set; I need

Notify user when a date is near

﹥>﹥吖頭↗ 提交于 2020-08-22 19:10:41
问题 I'm currently working on an Android app that uses several Firebase functions. In the Realtime Database I have a date (the date a book is due) and I need to notify the user when that date is near (say, 1 day before the date in the database). Firebase cloud functions doesn't seem to have a specific trigger to do this, as nothing in the database is changing. I have seen this thread, which can set an alarm/notification for a future date, but I don't know how to stop it once it's been set; I need

Firebase messaging-handle background message in kotlin

邮差的信 提交于 2020-08-22 11:44:34
问题 I'm using firebase_messaging in my flutter application. To handle background messages with firebase messaging in pub they suggested to create new Application.java file and replace java file name in AndroidManifest file. In my application i'm using kotlin and i already implemented some native code in MainActivity.kt So how to write this code in kotlin. package io.flutter.plugins.firebasemessagingexample; import io.flutter.app.FlutterApplication; import io.flutter.plugin.common.PluginRegistry;

Flutter Push Notifications: Unable to receive notifications in background or when app is closed

南笙酒味 提交于 2020-08-18 17:03:54
问题 I am developing a flutter app for both Android and iOS. It has notifications, so I did implement the firebase_messaging API. I am sending notifications to certain devices by device ID and sending notifications to topics as well. I am testing the topics notification sending, which is working 100% fine in Android. I followed the guide in above provided link, implemented iOS setups as well. But in iOS, when the notification is sent, it is being received by app only if it is in foreground. Which

Flutter Push Notifications: Unable to receive notifications in background or when app is closed

三世轮回 提交于 2020-08-18 16:57:39
问题 I am developing a flutter app for both Android and iOS. It has notifications, so I did implement the firebase_messaging API. I am sending notifications to certain devices by device ID and sending notifications to topics as well. I am testing the topics notification sending, which is working 100% fine in Android. I followed the guide in above provided link, implemented iOS setups as well. But in iOS, when the notification is sent, it is being received by app only if it is in foreground. Which

Flutter Push Notifications: Unable to receive notifications in background or when app is closed

℡╲_俬逩灬. 提交于 2020-08-18 16:56:26
问题 I am developing a flutter app for both Android and iOS. It has notifications, so I did implement the firebase_messaging API. I am sending notifications to certain devices by device ID and sending notifications to topics as well. I am testing the topics notification sending, which is working 100% fine in Android. I followed the guide in above provided link, implemented iOS setups as well. But in iOS, when the notification is sent, it is being received by app only if it is in foreground. Which

Flutter Push Notifications: Unable to receive notifications in background or when app is closed

蓝咒 提交于 2020-08-18 16:55:16
问题 I am developing a flutter app for both Android and iOS. It has notifications, so I did implement the firebase_messaging API. I am sending notifications to certain devices by device ID and sending notifications to topics as well. I am testing the topics notification sending, which is working 100% fine in Android. I followed the guide in above provided link, implemented iOS setups as well. But in iOS, when the notification is sent, it is being received by app only if it is in foreground. Which