I’ve a ReactJS App that works nicely on internet and Android, however doesn’t load on iOS, all I get is a white display screen. With a view to debug I did a create-react-app app with a easy doc fetch from Firebase. Every little thing works nicely after I solely initialise the database in firebase.js, like so:
// src/firebase.js
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
const firebaseConfig = {
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
export { db };
however as quickly as I add the Auth to it, it stops working. The info merely by no means masses, although Im not even utilizing the auth within the app, simply initializing it.
import { getAuth } from "firebase/auth";
After I add a console log to verify the initialisation, it reveals up within the console with out issues
console.log("Firebase Auth Initialized:", auth);
I’ve added GoogleServices-Information.plist file to Xcode, and added Keychain Signing to the app.
I don’t know what else I might attempt… any options can be significantly appreciated!