gpt4 book ai didi

reactjs - 我们如何在 react-native 中将崩溃错误发送到自己的服务器

转载 作者:行者123 更新时间:2023-12-04 01:25:30 25 4
gpt4 key购买 nike

我正在使用 Firebase Crashlytics 记录我的 native react 应用程序中的崩溃错误,我希望将 Crashlytics 中的所有这些错误记录到我自己的服务器中。 react-native 中是否有任何方法可以处理此问题,我们将不胜感激。

Environment:

"react": "16.8.3",
"react-native": "0.59.4",
"react-native-firebase": "^4.2.0",

最佳答案

如果您希望崩溃转到 firebase 和您的服务器,只需在 crashlytics 上的崩溃报告上触发云功能 - documentation

You can trigger a function in response to Crashlytics issue events including new issues, regressed issues, and velocity alerts. (...) Each event triger created with IssueBuilder returns an Issue with properties that include the issue's name, ID, relevant app info, and more.

在一个应用中使用多个崩溃监听器并不是一个好主意。

关于reactjs - 我们如何在 react-native 中将崩溃错误发送到自己的服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62003206/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com