App center does not store crashes from physical devices (iphones) RRS feed

  • Question

  • User392050 posted

    In XF application AppCenter crashes and analytics is used. In OnStart() method following code is added: Problem is that, crashes which occured during debugging appear in "Diagnostics -> Issues" Unfortunately, none from crashes which was on Iphone(physical) is logged in Appcenter. I have read a lot of threads, but I didn't find similar problem. Thanks in advice.

    Tuesday, January 26, 2021 12:10 PM

All replies

  • User382871 posted

    Problem is that, crashes which occured during debugging appear in "Diagnostics -> Issues" Xamarin.iOS will not save the crash log when testing with the debugger. Make sure the debugger isn't attached when you crash the iOS app.

    Check the doc: https://docs.microsoft.com/en-us/appcenter/sdk/crashes/xamarin

    Xamarin forums are migrating to a new home on Microsoft Q&A! We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A! For more information, please refer to this sticky post.

    Tuesday, January 26, 2021 2:29 PM
  • User392050 posted

    @Yelinzh, you got me wrong. There is possibility to get crash throwing "test error" during debug. I am using Xamarin.Forms. and on production I dont get any crashes in analytics, from physical phones

    Tuesday, January 26, 2021 6:05 PM
  • User392050 posted

    @Yelinzh crashes on Android works great. What can I check to fix this issue on IOS?

    Wednesday, January 27, 2021 10:07 AM
  • User382871 posted

    Please mark sure the AppCenter.Crashes has been initialized in the FinishedLaunching method of the AppDelegate.cs. ``` AppDelegate.cs public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App());

    AppCenter.Start("xxx", typeof(Crashes));

    } ```

    Wednesday, January 27, 2021 10:13 AM
  • User392050 posted

    @Yelinzh I am using Xamarin.Forms so my initialization is in OnStart() method, like I said it works for emulators and doesn't for physical iphones

    Wednesday, January 27, 2021 10:20 AM
  • User382871 posted

    1.Try to restart the app after a crash. App Center Crashes will forward the crash log only after it's restarted.

    2.Will the App Center Crashes work fine without the debugger test?

    Wednesday, January 27, 2021 11:00 AM
  • User392050 posted

    @Yelinzh 1 I did it a lot of times on physical device, it didn't log any crash. When it comes to emulator it logged every. 2 I tried with custom crashes, on emulator it works great, on physical device it doesn't On android it works on emulator and physical.

    Wednesday, January 27, 2021 11:04 AM
  • User382871 posted

    If it only doesn't work for the physical device, this may be related to the network. Please mark sure the device is online.

    Tutorial about Xamarin SDK Troubleshooting you could refer to: https://forums.xamarin.com/discussion/187185/xamarin-essentials-filepicker-returns-uri-how-to-get-path-or-byte-from-picked-file

    Wednesday, January 27, 2021 2:09 PM