Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to see Crash report on MS-App Center. #62

Open
omsatam123 opened this issue Jul 11, 2022 · 2 comments
Open

Not able to see Crash report on MS-App Center. #62

omsatam123 opened this issue Jul 11, 2022 · 2 comments

Comments

@omsatam123
Copy link

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 [email protected] 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.

@johnborges
Copy link
Collaborator

@omsatam123 Can you share console logs or error messages?

@omsatam123
Copy link
Author

@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();

}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants