Code Monkey home page Code Monkey logo

Comments (2)

joeisapro avatar joeisapro commented on June 29, 2024

Here's how I do it.

Add the following code to the beginning of FinishedLaunching() - I have an ifdef block to make sure it doesn't get executed on simulator builds:

        Setup.EnableCrashReporting(() =>
            {
                Crashlytics.SharedInstance.DebugMode = true;
                Crashlytics.StartWithAPIKey("replace_with_your_crashlytics_api_key");

                AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
                {
                    Setup.CaptureManagedInfo(e.ExceptionObject);
                    Setup.CaptureStackFrames(e.ExceptionObject);
                    Setup.ThrowExceptionAsNative(e.ExceptionObject);
                };

                TaskScheduler.UnobservedTaskException += (sender, e) =>
                {
                    Setup.CaptureManagedInfo(e.Exception);
                    Setup.CaptureStackFrames(e.Exception);
                    Setup.ThrowExceptionAsNative(e.Exception);
                };
            }, Path.GetFileNameWithoutExtension(typeof(AppDelegate).Module.Name));

The source code for 'Setup' is available here: https://gist.github.com/joeisapro/829665aa232029b48e16 . It's based on HockeyApp setup code.

Once this is done, you have to make changes to Xamarin Studio to upload your dSyms automatically. Refer to this post on the Xamarin forums: https://forums.xamarin.com/discussion/comment/132204/#Comment_132204

Hope this helps. Let me know how you make out!

from monotouch.fabric.

prostokorol avatar prostokorol commented on June 29, 2024

Thanks for your response. I integrated your code and all looks fine, but I'm a little confused in settings to upload dSyms ¯_(ツ)_/¯ I'll try correctly configure unloading again on this weekend

from monotouch.fabric.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.