UPDATE 2017-02-19: use the plugin https://github.com/sarriaroman/FabricPlugin instead, crashlytics is now part of fabric
If you are looking for a great framework for crash reporting with your hybrid mobile app – look no further.
Right now there are only a few working out of the box in this constellation – crittercism is one of them but do not go there… here are a few reasons why you should not try them
- ui is slow
- if you are in europe it will be a bit buggy – at least it was for me, telling them about errors in their error reporting code base… (this is not how I expected this to work)
- very slow support
- expensive (cheap compared to new relic but still)
Now to Fabric.io (formerly known as crashlytics)
The Setup
this is tricky 😀 follow any guide you like for ionic, and then inside Android Studio install the Fabric.IO plugin. Warning – there are quite a lot of plugins for crashlytics that no longer work…
Next step is to open the platform/android as a separate android project – this will enable you to add the fabric code to your application. There is also a .fabric-io file in the android project root – this will contain your application secret.
Next step is fairly simple:
ionic plugin add https://github.com/DrMoriarty/cordova-fabric-crashlytics-plugin –variable CRASHLYTICS_API_KEY=YOURKEY –variable CRASHLYTICS_API_SECRET=YOURSECRET
well that’s it 🙂
If you have not yet finished the fabric setup you’ll have to trigger an error – this is quite simple by attaching the debuger (chrome://inspect) and calling
navigator.crashlytics.simulateCrash()
final words
I really like crashlytics and now it’s usable for both android and ios clients! Go build your hybrid apps and add useful crash reporting
The link that you have provided for the plugin is buggy! It gives error just after adding that plulgin.
LikeLike
by now this one is working better: https://github.com/sarriaroman/FabricPlugin
LikeLike
I agree. I am going for that plugin.
LikeLike
I’d be very interested if you could show an example of sarriaroman’s FabricPlugin integrated. I’ve never been able to get it to work, I have updated my declarations.d.ts file but window.fabric is always undefined.
LikeLike
how have you setup your project? I usually just add it and have it working:
this.handler = (window).fabric;
LikeLike
It seems now we cannot use this method with Ionic 3 app no? Please see this and let me know your feedback. Thanks.
StackOverflow: https://stackoverflow.com/questions/49429680/crashlytics-with-ionic-3-app
LikeLike