App Center Crashes

Contents

App Center Analytics helps you understand user behavior and customer engagement to improve your app. The SDK automatically captures session count and device properties like model, OS version, etc. You can define your own custom events to measure things that matter to you. All the information captured is available in the App Center portal for you to analyze the data.

For more info, please see https://docs.microsoft.com/en-us/appcenter/sdk/crashes/cordova

https://github.com/Microsoft/appcenter-sdk-cordova/tree/master/cordova-plugin-appcenter-crashes

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic App Center Crashes插件的安装(Installation)

ionic cordova plugin add cordova-plugin-appcenter-crashes npm install @ionic-native/app-center-crashes
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/app-center-crashes

Ionic App Center Crashes插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic App Center Crashes插件的用法(Usage)

import { AppCenterCrashes } from '@ionic-native/app-center-crashes/ngx';


constructor(private AppCenterCrashes: AppCenterCrashes) { }

...

this.AppCenterCrashes.setEnabled(true).then(() => {
   this.AppCenterCrashes.lastSessionCrashReport().then(report => {
       console.log('Crash report', report);
   });
});