Messaging product of firebase SDK has idb dependency, which throws uncatched errors.
This causes crashes on Microsoft Edge in InPrivate mode. Also in Firefox in private mode throws uncatchable error.
messaging producthttps://stackblitz.com/fork/firebase-issue-sandbox
Microsoft Edge browser crashes:

Firefox renders the page, but throws uncatchable error:

Make it possible to catch the error or handle indexedDB unsupported state
See related issue: https://github.com/firebase/firebase-js-sdk/issues/2373
As suggested in that issue, can you detect private mode and not initialize messaging if that's the case?
Otherwise @mmermerkaya is it worth it to find a way to throw a catchable error on trying to initialize messaging when there is no IndexedDB?
I'll see if I can add this to the isSupported() check.
See related issue: #2373
As suggested in that issue, can you detect private mode and not initialize messaging if that's the case?
Otherwise @mmermerkaya is it worth it to find a way to throw a catchable error on trying to initialize messaging when there is no IndexedDB?
If it is possible I would prefer catchable error. if not, then will try detecting private mode 馃憤
@mmermerkaya @hsubox76 any news on this topic? having a catchable error would be really appreciated.
Hi @alexiusp ,
@mmermerkaya has added the API support . Here is an example on how to use. Cheers.
Most helpful comment
Hi @alexiusp ,
@mmermerkaya has added the API support . Here is an example on how to use. Cheers.