preface

Bugly is actually very easy to use at both ends because there are few apis. However, for the convenience of integration, RN library is of course selected. Currently, there is only React-native Bugly on the Internet.

introduce

For detailed documentation, please visit bugly.qq.com/docs/

The library supports exception statistics and full android upgrade, but does not support native hot update (not encapsulated in this part of the code).

There are a lot of configuration items in the background, but to be honest, the interface is ugly, and it does not support the display of progress bar in the dialog box (this can actually be implemented by yourself, the update information contains the download address of APK, Call a library like Rn-fetch -blob to download and install it.)

You can download example.apk to experience it

Matters needing attention

1. Unavailable?

Please upgrade to the latest version and try again

React Native does not need to be configured with the latest version. The installation method is slightly different

2. After integration, full update has no effect

Please confirm whether the targetSDKVersion is 28 or above. The Bugly request uses HTTP, and Android 9 does not support HTTP requests by default, so it needs to be adjusted

Please refer to:

Blog.csdn.net/weixin_3411…

Refer to the demo

3. Why is it that after I click the update button, the dialog box closes and there is no response?

Bugly’s update mode is to directly display the download progress in the notification bar. If there is no prompt in the status bar, it means there is no notification permission (oppo/ Vivo system does not enable this permission by default).

rendering