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

Errors are not reported to AppCenter (Android) #219

Closed
liortal53 opened this issue Dec 11, 2018 · 6 comments
Closed

Errors are not reported to AppCenter (Android) #219

liortal53 opened this issue Dec 11, 2018 · 6 comments

Comments

@liortal53
Copy link

I have added the Crashes unityPackage and set up the integration as required, but could not get any reports showing up on our app's dashboard.

Also, it is unclear whether the Analytics package is required as well if all i'm interested in is crashes / errors data.

@kostya-zhidovinov
Copy link
Contributor

Hi @liortal53 !
This seems to be a known bug in Unity for Android. Unity catches all exceptions and prevents application crashes, so application is still running.
Please take a look at this note for more info: https://docs.microsoft.com/en-us/appcenter/sdk/crashes/unity#generate-a-test-crash

As for your last question - no analytics is required, the App Center SDKs use a modular architecture so you can use any or all of the services.

Please let me know if you need any further assistance with this or if you have more questions.

@tallior
Copy link

tallior commented Dec 12, 2018

Commenting from my other (work) account - i saw the code, you are registering on the logMessageReceived delegate, so i should be seeing errors as well (not only crashes), but unfortunately i received nothing.

@kostya-zhidovinov
Copy link
Contributor

Hey @tallior, could you please switch to LogLevel verbose from AppCenterBehaviour settings, reproduce this case and send me logs to investigate? Also if you have a simple app where I can reproduce this on my side - that would help a lot.

@tallior
Copy link

tallior commented Dec 19, 2018 via email

@evgeny-pol
Copy link
Contributor

Hello @tallior , good to hear you've managed to resolve the issue!
Do you mind sharing with us the piece of code that helped you to do it?
I'm going to close this issue for now but feel free to reopen it if you have any further questions.

@tallior
Copy link

tallior commented Dec 20, 2018

We are using proguard (to strip unused Java classes from the produced apk).
In our proguard-user.txt file I had to add this line (i already deleted the branch, so i am not sure this is exactly the package name for your code):

-keep class com.microsoft.appcenter.** { *; }

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

5 participants