You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
TypeError: undefined is not an object (evaluating 'gapi.iframes.getContext')
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
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" to capacitor.config.ts should make Firebase think it's running on Cordova and fix the issue, but I was not able to make it work.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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