Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

No Crash Report? #46

Closed
LiuC520 opened this issue Dec 16, 2016 · 7 comments
Closed

No Crash Report? #46

LiuC520 opened this issue Dec 16, 2016 · 7 comments

Comments

@LiuC520
Copy link

LiuC520 commented Dec 16, 2016

1、debug:use your demo, it can report the crash, but after android release, can't release the crash
2、add meta-data in androidManifest and replace the appkey;
add "apply plugin:com.bugsnag.android.gradle.BugsnagPlugin" in app/buildgradle;
add "classpath 'com.bugsnag:bugsnag-android-gradle-plugin:2.3.2' " in project/build.gradle;
add "-keepattributes SourceFile,LineNumberTable" in app/proguard-rules.pro;
But can't get the crash,after click the Button ,exit !!

@kattrali
Copy link
Contributor

Hi @LiuC520. The crash report should be sent after the app is restarted. Can you confirm that the report is not sent on a later run of the app?

Also, did you add the package to your MainApplication file?

@LiuC520
Copy link
Author

LiuC520 commented Dec 17, 2016

After crash,I restarted the app,but still no report;
I'v added the package below
new MainReactPackage(),
BugsnagReactNative.getPackage(),
new PickerViewPackage(),
new ReactVideoPackage(),
I've already push the code to github:https://github.com/LiuC520/Demo12

@kattrali
Copy link
Contributor

Thanks for the demo code, @LiuC520. It looks like Root is imported from index.android.js, but within Root.js, Bugsnag is never imported and used. There is a reference to the Client object in a separate file, Root1.js, but this file does not seem to be imported and used anywhere. Can you try moving the client to the Root file, or importing Root1 instead?

@Andreyco
Copy link

Probably this guy just posted wrong build, but the issue is there. Please see #47

@kattrali
Copy link
Contributor

Ah, thanks @Andreyco!

@Andreyco
Copy link

No problem, working on fix, will see what I can do...

@kattrali
Copy link
Contributor

Closing this out in favor of #47, updating there with more info.

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

No branches or pull requests

3 participants