English | 中文
- Introduction
- Preparing the Environments
- Getting Started
- Sample Code
- Result
- Question or issues
- License
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 Xcode installed for app development
- An iOS device or simulator must support iOS 9 or a later version
Before running the crash quickstart app, you need to:
- If you do not have a HUAWEI Developer account, you need to register an account and pass identity verification.
- Use your account to sign in to AppGallery Connect, create an app, and set Package type to iOS.
- Select your project and app in My projects, and go to Quality > Crash to 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.)
- Download the agconnect-services.plist file from AppGallery Connect and add it to the root directory of your Xcode project.
The Crash Quickstart supports crash simulation,exception simulation and crash collection switch setting. Objective-C Code: AGConnectCrashDemo/AGConnectCrashDemo/ViewController.m Swift Code: AGConnectCrashDemo/AGConnectCrashDemo-Swift/ViewController.swift
Click Test Exception and Report Crash
If you have questions about how to use AppGallery Connect Demos, try the following options:
- Stack Overflow is the best place for any programming questions. Be sure to tag your question with huawei-mobile-services.
- Huawei Developer Forum AppGallery Module is great for general questions, or seeking recommendations and opinions.
If you run into a bug in our samples, please submit an issue to the Repository. Even better you can submit a Pull Request with a fix.
crash quickstart is licensed under the [Apache License, version 2.0] (http:https://www.apache.org/licenses/LICENSE-2.0).