Context
I am trying to test my Xamarin Forms app crash reporting on Android emulator. All Analytics function are working, however I can not see a single crash report in the server. I am using Crashes.GenerateTestCrash();
but I also produced real crashes too.
From the diagnostics it seems the device does not even sends the crash information to the server.
Question
What am I missing? or What else should I try?
Diagnostics and what I have tried so far
First of all, I've carefully read the Troubleshooting on page https://learn.microsoft.com/en-us/mobile-center/sdk/troubleshooting/xamarin paragraph 'Crashes don't show up in the portal'
I know that I must start the app again, to send the crash info
- I have turned on verbose logging:
MobileCenter.LogLevel = LogLevel.Verbose;
It seems everything is initialized OK, including 'Set up Xamarin crash handler' - Examined the console verbose output, there are correct JSON analytic data transfers, however there are no traces any crash related
- Manually debugged and checked the line
Crashes.GenerateTestCrash();
is executing. In OnStart I also checking the prev crash:
// Returns false: bool didAppCrash = Crashes.HasCrashedInLastSessionAsync().Result; ErrorReport crashReport = Crashes.GetLastSessionCrashReportAsync().Result;
Console log parts
09-19 10:10:14.036 I/MobileCenterCrashes( 3173): Set up Xamarin crash handler.
09-19 10:10:14.064 F/MobileCenter( 3173): Mobile Center SDK configured successfully.
...
09-19 10:10:14.081 D/MobileCenter( 3173): checkPendingLogs(group_core) pendingLogCount=0
09-19 10:10:14.081 D/MobileCenter( 3173): Mobile Center storage initialized.
09-19 10:10:14.081 D/MobileCenter( 3173): checkPendingLogs(group_analytics) pendingLogCount=0
09-19 10:10:14.082 D/MobileCenterAnalytics( 3173): Loaded stored sessions: {...}
09-19 10:10:14.083 I/MobileCenter( 3173): Crashes service started.
09-19 10:10:23.815 V/MobileCenter( 3173): Calling https://in.mobile.azure.com/logs?api_version=1.0.0-preview20160914...
09-19 10:10:23.815 V/MobileCenter( 3173): Headers: {Install-ID=..., App-Secret=...}
09-19 10:10:23.817 V/MobileCenter( 3173): {
09-19 10:10:23.817 V/MobileCenter( 3173): "logs": [
09-19 10:10:23.817 V/MobileCenter( 3173): {
09-19 10:10:23.817 V/MobileCenter( 3173): "type": "start_session",
09-19 10:10:23.817 V/MobileCenter( 3173): "timestamp": "2017-09-
... and so on...