I’m developing a Flutter app using Firebase Firestore and I’m encountering a specific issue on the iOS version.
In my app, I have a method FirebaseFirestore.instance.collection(‘myCollection’).get() that is supposed to fetch data from Firestore. However, this method does not retrieve data unless I have previously used _auth.signInWithEmailAndPassword in another view for optional login. This issue does not occur on the Android version, where the get method works correctly without prior authentication.
Any help or suggestions would be greatly appreciated. Thanks!