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

bug: Firebase JS SDK incompatible with Capacitor 3 on iOS14 #5059

Closed
harry-herskowitz opened this issue Sep 17, 2021 · 5 comments
Closed

bug: Firebase JS SDK incompatible with Capacitor 3 on iOS14 #5059

harry-herskowitz opened this issue Sep 17, 2021 · 5 comments

Comments

@harry-herskowitz
Copy link

Bug Report

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 3.2.3
@capacitor/core: 3.2.3
@capacitor/android: 3.2.3
@capacitor/ios: 3.2.3

Installed Dependencies:

@capacitor/cli: 3.2.2
@capacitor/core: 3.2.2
@capacitor/ios: 3.2.2
@capacitor/android: 3.2.2

[success] iOS looking great! 👌

Platform(s)

iOS 14

Current Behavior

in iOS14, Firebase calls hang indefinitely (getAuth(), getDocs(), etc)

Expected Behavior

Firebase calls should resolve.

Code Reproduction

Requires Firebase account and setup, can't post mine here.

Other Technical Details

npm --version output: 7.22.0

node --version output: v14.17.0

pod --version output (iOS issues only): 1.11.0

Additional Context

Other discussion: firebase/firebase-js-sdk#5019

@harry-herskowitz
Copy link
Author

FIXED! Here's the solution: https://harryherskowitz.com/2021/08/23/firebase-capacitor.html

@ejirocodes
Copy link

@tobium
Copy link

tobium commented Nov 12, 2021

it only works with the firebase JS SDK, not with AngularFire :(

@mauriceackel
Copy link

@roldyclark Thanks for writing about this issue and sharing the solution. I am facing the same issue, however the proposed solution did not work. Only once I used the browserLocalPersistence persistence strategy, the initialization worked as expected on iOS. Do you have any idea why this could be or how to get the default indexedDB persistence to work?

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 10, 2022

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants