firebase / firebase/firebase-js-sdk
Anaytics are disabed on plugin-ike environments due to inavalability of indexed db access(Might be feature request)
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
```
[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).
```

I'm trying to use firebase analytics on my figma plugin - [Bridged Assistant](https://github.com/bridgedxyz/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!
Contributor guide
Assessment
This issue has not been assessed yet.