Question

I'm developing a metro UI app using winRT 8.1 and I need to implement a crash report. Customer wants to check on launch if app was crashed last time and sent a report via email if so. As I know system event logs are not available for winrt. Application will be sideloaded(probably Airwatch). What options do I have?

Was it helpful?

Solution

You can't send emails without user interaction. So you probably want to send the crash report to a web service.

If you don't want to create this solution on your own, use or other services; some of them come for free.

If you want to do it by yourself: in your App.xaml.cs file find the UnhandledException handler, (1) save the exception info somewhere, then (2) try to send this information to the web service and finally (3) remove the info from whereever you saved it in (1). Obviously you also need a web server running the web service which you also have to create.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top