How to add firebase Crashlytics in Ionic 3?

#1

I tried to follow below documentation.

But when I tried to use it with
crashlytics.logException(‘my caught exception’);

it was not working.

Please help me.