ReallySmallSoftware / cordova-plugin-firebase-crashlytics

Google Firebase Crashlytics Cordova plugin
Other
32 stars 80 forks source link

error: "plugin_not_installed" #49

Open DaedalusAB opened 3 years ago

DaedalusAB commented 3 years ago

Expected Behavior

Plugin initializes and works afterwards

Actual Behavior

Plugin doesn't initialize some of the time.

Steps to Reproduce the Problem

This is a piece of code in a constructor of an angular service injected in 'root'

this.crashlytics = this.firebaseCrashlytics.initialise(); console.log(">> init crashalitics", this.crashlytics); // <--- log

When I run the app on an android device, it sometimes works, but most of the time it gives me back this in the log:

error: "plugin_not_installed" __proto__: Object

After that, when I attempt to log an exception (or anyhting) via this.crashlytics.logException('asdfa');

It breaks with:

ERROR TypeError: this.crashlytics.logException is not a function (which, clearly is there because plugin is not installed somehow).

At random, the plugin will be initialized and will work properly, on the exact same code/build.

Specifications

bhopalg commented 2 years ago

Same issue, did you find a solution?

shilpidaswani commented 2 years ago

Facing same issue, did you find a solution? can someone help.. @ReallySmallSoftware

Cirass95 commented 2 years ago

Same issue, are there any updates on the resolution ?? @ReallySmallSoftware