【问题标题】:React-Native : messaging().onNotificationOpenedApp not calling after I quit my appReact-Native:我退出我的应用程序后,messaging().onNotificationOpenedApp 没有调用
【发布时间】:2021-01-28 13:19:58
【问题描述】:

我已经实现了 rnfirebase 云消息传递并实现了 https://rnfirebase.io/messaging/usage 中提到的所有内容。我在 messing().onNotificationOpenedApp 和 getInitialNotification() 中收到电话,但直到我退出我的应用程序。一旦我退出我的应用程序,我就再也不会收到通知点击的回调了。通知只是打开应用程序。 (我没有使用任何启动画面)

【问题讨论】:

  • 您找到解决方案了吗?我遇到了完全相同的问题...
  • React Native 升级和 Firebase npm 更新为我修复了它。

标签: android firebase-cloud-messaging react-native-android


【解决方案1】:

最后,我可以通过升级 React Native 版本和更新 firebase npm 来解决。

【讨论】:

    猜你喜欢
    • 2021-10-02
    • 2019-08-20
    • 2020-01-27
    • 1970-01-01
    • 2023-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-24
    相关资源
    最近更新 更多