Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
softmarshmallow opened this issue Jan 30, 2021 · 2 comments

Comments

@softmarshmallow
Copy link

softmarshmallow commented Jan 30, 2021

[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
Copy link
Contributor

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

@softmarshmallow
Copy link
Author

Can anyone from firebase help it through?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants