Skip to content

Latest commit

 

History

History

crash

crash quickstart

English

Table of Contents

Introduction

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.

Environment Requirements

  • A computer with Unity installed for app development
  • A device running Android 4.2 or a later version

Getting Started

Before running the crash quickstart app, you need to:

  1. Check whether you have a HUAWEI ID. If not, register one and pass identity verification.
  2. Use your account to sign in to AppGallery Connect, create an app, and set Package type to APK (Android app).
  3. 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.)
  4. 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/)

Sample Code

The Crash SDK supports crash simulation, exception simulation, crash collection switch, and some other functions.

Sample code: Assets\Resources\Scripts\CrashHandler.cs

Technical Support

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.

License

The sample code is licensed under the Apache License, version 2.0.