firebase / firebase-js-sdk

Firebase Javascript SDK
https://firebase.google.com/docs/web/setup
Other
4.86k stars 891 forks source link

Anaytics are disabed on plugin-ike environments due to inavalability of indexed db access(Might be feature request) #4372

Open softmarshmallow opened 3 years ago

softmarshmallow commented 3 years ago
[2021-01-30T20:02:18.179Z]  @firebase/analytics: Analytics: IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: SecurityError: Failed to execute 'open' on 'IDBFactory': access to the Indexed Database API is denied in this context. (analytics/indexeddb-unavailable).

Bridged Assistant Console error with firebase

I'm trying to use firebase analytics on my figma plugin - Bridged Assistant, but i can't since figma plugin works on iframe, and the indexed db access is disabled.

But such platform like this provide its own database-like utils. So here is my question / request.

  1. Plans for opting out index db usage? so it can be used generally on any environment. regardless with platform.
  2. Request: Provide middleware access so we can plug our own data storage feature. FB will only do the I/O with that provided database-like middleware.

Thanks!

google-oss-bot commented 3 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

softmarshmallow commented 3 years ago

Can anyone from firebase help it through?