Any way to make vue-fire work with Ionic ? #1455
Unanswered
mrleblanc101
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, my app run in the browser.
I recently tried to port it to Ionic to make a native iOS/Android version.
Ionic has a dev mode in the browser, and I've been able to make everything work.
When I finally try to launch the app in the iOS Simulator, I get this error:
There are some discussion around this on the web, this is because Firebase modular SDK doesn't directly support Capacitor, only Cordova. See this issue: firebase/firebase-js-sdk#5019
Some propose using
getAuth
directly but in VueFire we load aVueFireAuth
as a module instead so I'm not sure how I could use this.https://harryherskowitz.com/2021/08/23/firebase-capacitor.html
There seem to be a lot of discussion around the same issue in the AngularFire repo angular/angularfire#3087, someone say that add
iosScheme: "ionic"
tocapacitor.config.ts
should make Firebase think it's running on Cordova and fix the issue, but I was not able to make it work.Beta Was this translation helpful? Give feedback.
All reactions