推送通知未显示在react-native-firebase的前台(关闭应用程序时)

时间:2019-05-08 15:31:00

标签: push-notification react-native-firebase

当应用程序关闭时,

React-native-Firebase推送通知无法显示为前台。如果该应用已打开,则推送通知没有问题,它们显示良好。

df <- read.csv("df.csv")
class(df$Flow)
# [1] "integer"

df <- read_csv("df.csv")
class(df$Flow)
# [1] "character"

1 个答案:

答案 0 :(得分:0)

您没有给我们太多信息,但是如果您使用的是Android,则需要设置notifications channels as per this documentation

    const channel = new firebase.notifications.Android.Channel(
      "main_notification_channel",
      "Main notification Channel",
      firebase.notifications.Android.Importance.Max
    ).setDescription("A natural description of the channel");
    firebase.notifications().android.createChannel(channel);