Open omsatam123 opened 2 years ago
@omsatam123 Can you share console logs or error messages?
@johnborges : Can you please assist what kind of log or error messages required. Is it XCode or Android Studio level error messages/console level messages?
See the below snippet implementation code for app-component.ts file: import { Component } from '@angular/core'; import Crashes from '@capacitor-community/appcenter-crashes';
@Component({ selector: 'app-root', templateUrl: 'app.component.html', styleUrls: ['app.component.scss'], })
export class AppComponent {
constructor() {
Crashes.generateTestCrash();
} }
Bug Report
Plugin(s)
npm i @capacitor-community/appcenter @capacitor-community/appcenter-analytics @capacitor-community/appcenter-crashes --save-exact npx cap sync
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 3.6.0 @capacitor/core: 3.6.0 @capacitor/android: 3.6.0 @capacitor/ios: 3.6.0
Installed Dependencies:
@capacitor/cli: 3.6.0 @capacitor/core: 3.6.0 @capacitor/android: 3.6.0 @capacitor/ios: 3.6.0
[success] iOS looking great! 👌 [success] Android looking great! 👌 npm notice npm notice New minor version of npm available! 8.5.5 -> 8.13.2 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.13.2 npm notice Run npm install -g npm@8.13.2 to update! npm notice
Platform(s)
Android, iOS
Current Behavior
When added Crashes.generateTestCrash() in app-component.ts file Not able to generate the test crash the app in both Android and iOS platforms and not able to see report on MS-App Center
Expected Behavior
Should be able to crash the app and see logs on MS-App Center.