Microsoft Teams integration with Crash Reporting

bobLawsonbobLawson GBMember ✭✭

Quick question. Does Xamarin or I guess Visual Studio crash reporting allow integration with Microsoft Teams? I know they allow you to create automatic tickets in bug tracking software like Jira, but am looking for the ability for new issues to automatically create tickets in a dedicated channel in MS Teams. Does anyone know if there is a pre-baked integration?
Thanks

Posts

  • dinobdinob USUniversity ✭✭✭

    @bobLawson have you figure it out about this? Also interested in this topic

  • AndyFlisherAndyFlisher GBBeta, University ✭✭✭

    Try sentry.io works well with Xamarin / C# for the reporting and it has a teams app for notifications at https://appsource.microsoft.com/en-us/product/office/WA104381566?src=office&tab=Overview

  • bobLawsonbobLawson GBMember ✭✭

    @dinob said:
    @bobLawson have you figure it out about this? Also interested in this topic

    Kumulos have this feature. So you get alerted in Microsoft Teams when new Issues happen in the app. There's also integrations with Jira and Trello so problems can be carded up and workflowed into the right dev team. Its pretty neat.
    https://www.kumulos.com/crash-reporting-endpoint-monitoring/

  • dinobdinob USUniversity ✭✭✭

    @bobLawson said:

    @dinob said:
    @bobLawson have you figure it out about this? Also interested in this topic

    Kumulos have this feature. So you get alerted in Microsoft Teams when new Issues happen in the app. There's also integrations with Jira and Trello so problems can be carded up and workflowed into the right dev team. Its pretty neat.
    https://www.kumulos.com/crash-reporting-endpoint-monitoring/

    Thanks @bobLawson I am not particularly looking for Teams integration but for crash reporting. Thanks for providing the link, I will take a look. This is what I have found so far, including your suggestion to look into Kumulos:

    AppCenter
    AppCenter is Microsofts own framework providing crash reporting, logging, push notifications, analytics, building, distribution (update push notifications).
    It used to be called HockeyApp, then MobilityCenter, and has changed name again and merged Xamarin Insights into MobilityCenter. It supports Xamarin.Forms (Android, iOS, UWP) as well as native Android and IOS; however, documentation is somewhat confusing as the UWP does not come always as supported or fully supported.
    One strange requirement is to not use any other reporting packages if using AppCenter
    Also, UWP apps have less supported methods than their counterparts, including some methods that are just stubbed and do nothing as per confirmation from Microsoft's stuff. The bottom line is that UWP provides only crash reporting for starting issues and not full crash reporting (see https://docs.microsoft.com/en-us/appcenter/sdk/crashes/uwp). But considering that UWP is not covered with anyone else at all, this is still better option to go with.

    Kumulos
    This one might be interesting looking into as it provides alerting in Microsoft Teams (if that is what we plan integrating with) when new Issues happen in the app. There's also integrations with Jira and Trello so problems can be carded up and workflowed into the right dev team. Supports Xamarin (not sure about Xamarin.Forms and all 3 platforms) and provides push notifications, crash reporting, analytics and many more.

    AppSee
    Xamarin IOS and Android only

    Crashlytic
    No support for UWP or Xamarin.Forms.
    Crashlytic is now part of Firebase

    BugSense
    No support for UWP or Xamarin.Forms, retention policy

    RayGun
    No support for UWP or Xamarin.Forms, expensive, retention policy

    RollBar
    iOS, Android, .NET

  • NMackayNMackay GBInsider, University mod

    Yeah,

    AppCenter is probably the best best, some of the alternatives are laughably expensive.

  • AndyFlisherAndyFlisher GBBeta, University ✭✭✭

    Appcenter works well, we use this, but find Sentry.io more fully formed (https://sentry.io/welcome/) and you can get a long way on the free tier, certainly as a single dev.

    Currently have projects in there for;

    • Xamarin Forms
    • Xamarin TVOS
    • Windows (WPF and Console)
    • .Net Web Apps
    • PHP
    • Javascript
    • Java (Grails)

    So very much depends on your needs, and does nice things like Slack / Teams notifications, can push issues to Github etc

  • HBockHBock Member

    First of all sorry I cannot post links.
    @AndyFlisher Do you successfully log unhandled exceptions using sentry? If so do you have an exemple project please?
    Using the old sentry .net sdk (the one called raven-sharp, it seems to be the only one available as of today since it is the one referred in the article create-a-5-star-mobile-app-with-xamarin), it seems it is not possible to log unhandled exceptions, no matter they are .net exception or native ones (android / iOS)

    Thank you in advance

  • AndyFlisherAndyFlisher GBBeta, University ✭✭✭

    Hi @HBock pretty sure I do, at least I intend to (been a while so am assuming it all works!) - package wise I use the Sharpraven nuget which seems to work (this is a Xamarin Forms project so installed in the iOS and Android sub projects).

    For unhandled exceptions I have (copied and pasted from multiple sources for simplicity so hope it's accurate) in my iOS AppDelegate.cs;

    `
    private RavenClient sentryClient;

         public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
    
            global::Xamarin.Forms.Forms.Init();
    
        sentryClient = new RavenClient("MYSENTRYDSN");
            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
    
            LoadApplication(new App());
    
            return base.FinishedLaunching(app, options);
        }
    
        static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
        {
            Exception ex = (Exception)e.ExceptionObject;
            sentryClient.Capture(new SentryEvent(ex));
            Environment.Exit(1);
        }
    

    `

    And in Android MainActivity.cs (Your launcher one) I have;

    `

        private RavenClient sentryClient;
    
       protected override void OnCreate(Bundle bundle)
        {
    
        sentryClient = new RavenClient("MYSENTRYDSN");
            AppDomain.CurrentDomain.UnhandledException += UnhandledExceptionHandler;
    
    
    
    
    
            base.OnCreate(bundle);
            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
    
    
        static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs e)
        {
            Exception ex = (Exception)e.ExceptionObject;
            sentryClient.Capture(new SentryEvent(ex));
    
        }
    

    `

  • HBockHBock Member

    Thank you @AndyFlisher , I probably missed something stupide for it not to work, gonna try that this afternoon.

    :)

Sign In or Register to comment.