如何将操作按钮添加到 RNFIREBASE 消息通知
How to add action button to RNFIREBASE MESSAGING notifications
我研究了这个 github 问题:https://github.com/invertase/react-native-firebase/issues/1811
但找不到答案,因为 react-native-firebase
软件包不再维护。相反,它被分成特定的包。我找不到使用 @react-native-firebase/messaging
将操作按钮添加到通知的选项
我在网上掀起了风暴,但没有找到解决办法。请告诉我路径
最后我通过以下方式解决了:
我使用了 react-native-push-notifications
库。每当收到新消息时,都会创建一个新通知。使用库可以轻松添加操作按钮。
我研究了这个 github 问题:https://github.com/invertase/react-native-firebase/issues/1811
但找不到答案,因为 react-native-firebase
软件包不再维护。相反,它被分成特定的包。我找不到使用 @react-native-firebase/messaging
我在网上掀起了风暴,但没有找到解决办法。请告诉我路径
最后我通过以下方式解决了:
我使用了 react-native-push-notifications
库。每当收到新消息时,都会创建一个新通知。使用库可以轻松添加操作按钮。