-
Notifications
You must be signed in to change notification settings - Fork 875
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
enablePersistence not working on Safari v15 #5716
Labels
Comments
Thanks @cmditch for reporting this and for your contribution to the code. We'll review the PR. |
Merged
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Very similar in nature to #4076, if not the exact same issue.
Steps to reproduce:
firebase.firestore().enablePersistence({ synchronizeTabs: true })
(synchronizeTabs option doesn't seem to make a difference).App does not make it past the "Opening database" step:
Relevant Code:
It looks like a workaround for this issue was merged in #5166 by changing the cleanup behavior for Safari 14. I changed this from
navigator.appVersion.match('Version/14')
tonavigator.appVersion.match(/Version\/1[45]/)
to have the patch work for Safari 14 and 15 and my app now loads correctly.The text was updated successfully, but these errors were encountered: