sarriaroman / FabricPlugin

Fabric.io plugin for Cordova or Phonegap
MIT License
198 stars 159 forks source link

Conditionally initialize reporting #160

Open csabbey opened 4 years ago

csabbey commented 4 years ago

I'd like to only initialize Fabric (namely, Crashlytics reporting) under certain conditions.

My specific use case: my app collects data for a few days, and then expires, but many users aren't following the instructions to uninstall. When the app starts up after its expiry, we don't want any crash reports - they're creating noise without being helpful.

I'm asking to not initialize it instead of turning it off because once reporting is enabled, it can't be turned off for a session.

So, is there a way to conditionally initialize Fabric with this plugin? Or, if not, could it be added?