I have no problem to connect to Firebase or access Firestore from web or Android.
But from iOS, when compiled like an app through Xcode it doesn’t work. It’s like the connection can’t be established. It’s what I suppose because I’m not able to see any logs. I took 3 days on this issue and can’t solve it… Here is what I’ve done so far :
On Firebase : created an iOS app too (required ? or just web app ?)
iOS app associated with the bundle id on Firestore (not sure it’s useful)
GoogleService-Info.plist added to the Xcode project
Try to log in
various tests carried out, it bugs at the signInAnonymously(auth) level it can’t be done.
On Firebase, I have activated the anonymous connection and I have the users (my tests) in anonymous connection who appear in the list of users
HTTPS
I have set NSAppTransportSecurity in the Info.plist for Xcode with NSAllowsArbitraryLoads in true
FYI : I think the problem is an https problem because I have 2 bugs: Firebase, I have nothing in result or in console logs so clearly there are 0 connections. I have another connection to a Google API via a GCP call which does not succeed but there the problem is explicit it is because of the CORS (I have console logs for that one).
DEBUG
I tested setLogLevel(“debug”); which works great in web/android but nothing on iOS
If someone has a sample project which works with Firestore or know a link to it, I’ll be very happy to try it.
Make sure your GoogleService-Info.plist is properly added to the project (not just the folder but in Xcode under “Copy Bundle Resources”). Also, double-check that Firebase initialization is happening correctly in AppDelegate.swift.