-
Notifications
You must be signed in to change notification settings - Fork 927
FR: Firebase Messaging: SDK installation crashes in Edge InPrivate #2465
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
Comments
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? |
I'll see if I can add this to the |
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 , |
Describe your environment
Describe the problem
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.
Steps to reproduce:
messaging
productRelevant Code:
https://stackblitz.com/fork/firebase-issue-sandbox
Screenshots:
Microsoft Edge browser crashes:

Firefox renders the page, but throws uncatchable error:

Desired behavior
Make it possible to catch the error or handle indexedDB unsupported state
The text was updated successfully, but these errors were encountered: