Code Monkey home page Code Monkey logo

fabric.sdk.xamarin's Introduction

Fabric.Sdk.Xamarin

  • Answers
  • Crashlytics
  • Digits

For Xamarin.Forms, Xamarin.Android and Xamarin.iOS.

For iOS, you need to create a application with the same bundle id on XCode as the one on your Xamarin app. Then, use the Fabric Mac app to add your app and complete the Kits on-boarding process.

For Android, you need to create a application with the same package name on android studio as the one on your Xamarin app. Then, use the Fabric Mac app to add your app and complete the Kits on-boarding process.

After that, you can follow the instructions on https://www.fabric.io/kits to configure your projects.

For crashlytics on android, please see below on how to generate a unique build UUID.

Or else you'll get a crash on startup ("Unable to extract Crashlytics build info from the dropped APK. Please make sure your Crashlytics build tool plugin is installed and enabled")

There is a Sample available on Samples folder.

On iOS, Crashlytics shouldn't be used with Answers. Crashlytics includes Answers, so you should use either.

[Dropping .apk in Android Studio plugin for Beta] (drungrin#7)

Android Fabric UUID

Install Android Studio

Download and install android studio, and follow the instructions to integrate Fabric with your project.

Ensure that in your AndroidManifest.xml file in the AS project you have the same package name, version number and version code (build number) as your Xamarin Studio / Visual Studio project.

Updating Crashlytics Build ID

In order to automate the process Crashlytics has a plugin for Android Studio (โ€œASโ€) that creates a UUID for a version.& build number when you make the project. Since there is no plugin for Xamarin, whenever we increment the build number or version number we will need to amend the same values in the dummy AS project and build it.

Once the project is open in AS click the project browser on the left, under App select -> manifests -> AndroidManifest.xml. Ammend the version name and version code (Build Number) and then click the Make button (Hammer circled below).

Image 1

When the build is finished you will see the following in the bottom right:

Image 2

Make sure that it is a recent finish, and not one from before you made the changes otherwise the UUID will not work.

Generating the UUID

Select the search icon in the top right of AS:

Image3

Search for:

com_crashlytics_build_id.xml

Or navigate to:

Image 4

Then copy the UUID in the XML tag and paste it into Strings.xml in Xamarin Studio here:

Image 5

In the format <string name="com.crashlytics.android.build_id">build_id</string>

And presto everything should work! Just check the log output shows:

[Fabric] Build ID is:

Checking A Crash Has Sent

Put a breakpoint on the line after Fabric.Instance.Initialize(this) - and look at the fabric log output at that point. The two lines you are looking for are an HTTP response code (202) and uploaded with ID.

If ID is blank then the build UUID is incorrect.

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.