Crashlytics: integrating a crash reporter into an Appgyver Steroids JS application

299 Views Asked by At

How would we integrate the cordova crashlytics plugin to our steroids application. We are developing the application using eclipse sts and we've already installed it with crashlytics plugin. We also created an account on fabric but we are stuck on step 2 which is to launch your app. It seems that steroids application is not considered as android application. What shall we do to incorporate crashlytics?

1

There are 1 best solutions below

2
On

Check out this documentation for plugins.

You need to build a scanner app using the Appgyver build service with your custom cordova plugin included.

Then you can scan the QR code generated by steroids connect and the plugin will be there.

You can test to see if it's there by debugging in the dev tools of your browser (Chrome for Android builds and Safari for iOS builds).

You can type typeof navigator.crashlytics or however the plugin is referenced in JS. Maybe window.plugins.navigator.crashlytics.

Based on the documentation it looks like it should be part of the navigator object after installing.

One example of including a plugin in a build is to go to the build settings for your application for the device you want to target (Android build in your case or iOS build) and scroll down to the plugins area. Add the plugin like this:

[
    "source":"https://github.com/4sh-projects/cordova-crashlytics-plugin.git"
]