English
The AppGallery Connect Crash service provides a powerful yet lightweight solution to app crash problems. With the service, you can quickly detect, locate, and resolve app crashes (unexpected exits of apps), and have access to highly readable crash reports in real time, without the need to write any code.
- A computer with Unity installed for app development
- A device running Android 4.2 or a later version
Before running the crash quickstart app, you need to:
- Check whether you have a HUAWEI ID. If not, register one and pass identity verification.
- Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
- Click My projects, select your project and app, go to Quality > Crash, and enable the Crash service. (The Crash service integrates HUAWEI Analysis Kit for crash event reporting. As a result, you need to enable HUAWEI Analysis Kit before integrating the Crash SDK.)
- Go to Project settings > General information, download the agconnect-services.json file from AppGallery Connect, copy this file to the app's Resource directory (for example, cloud-function/Assets/Resources/)
The Crash SDK supports crash simulation, exception simulation, crash collection switch, and some other functions.
Sample code: Assets\Resources\Scripts\CrashHandler.cs
If you have any questions about the sample code, try the following:
- Visit Stack Overflow, submit your questions, and tag them with
appgallery
. Huawei experts will answer your questions. - Go to AppGallery in the HUAWEI Developer Forum and communicate with other developers.
If you encounter any issues when using the sample code, submit your issues or submit a pull request.
The sample code is licensed under the Apache License, version 2.0.