【问题标题】:How to implement cloud messaging firebase in react native app?如何在 React Native 应用程序中实现云消息传递 Firebase?
【发布时间】:2023-04-01 08:21:01
【问题描述】:

我正在尝试在 React Native 应用程序中实现云消息传递 Firebase,我遵循了很多教程,但没有一个可以正常工作,例如:

https://medium.com/@rempire230/push-notification-for-android-in-react-native-282019867f86

https://medium.com/@anum.amin/react-native-integrating-push-notifications-using-fcm-349fff071591

android 应用在前台或后台接收消息时总是崩溃。

如果有人能推荐一个关于在 react native 中使用 FCM 的好教程(适用于 android 和 ios),我将不胜感激。

提前致谢。

【问题讨论】:

  • 我使用了第二篇文章并实现了它,并且运行流畅。您遇到什么错误?

标签: react-native


【解决方案1】:

我找到了这个教程,它适用于 android 和 ios:

React Native #31:Firebase 通知(react-native-firebase 版本 7) https://www.youtube.com/watch?v=dyAwv9HLS60&t=805s https://github.com/tranhonghan/RNFirebaseV7/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-02-25
    • 1970-01-01
    • 1970-01-01
    • 2020-06-03
    • 2021-02-18
    • 1970-01-01
    • 2020-12-31
    • 1970-01-01
    相关资源
    最近更新 更多