I am developing a FlutterFlow application that interacts with Firestore for data storage and retrieval. The application functions correctly on Android devices and within FlutterFlow's web test mode. However, a critical issue arises on iOS devices:
Issue Manifestation:
Crash Behavior: When accessing certain Firestore documents created via an iOS device (using TestFlight), the app crashes, displaying a black screen. This crash does not occur when the same documents are accessed on Android devices or when viewed through FlutterFlow's web test mode.
Data Anomalies: Firestore documents created on iOS devices exhibit unexpected
null
values in fields that are correctly populated when the same documents are created on Android devices.Query Failures: Queries utilizing single user queries fail to retrieve data from iOS-created documents, whereas using
DocumentReference
queries successfully retrieves the data without causing crashes.
Technical Details:
Firestore Integration: The application employs Firestore for real-time database functionalities. Data is structured with references and direct queries.
Image Handling: Profile pictures and category images are loaded using
cached_network_image
. Issues are observed with.svg
formats not rendering correctly on iOS, leading to performance degradation and crashes.Error Messages:
Invalid argument(s): No host specified in URI file:///
[FirebaseCrashlytics][I-CLS000000] Crashlytics skipped rotating the Install ID during urgent mode because it is run on the main thread, which can't succeed. This can happen if the app crashed the last run and Crashlytics is uploading urgently.
Pensou por 21 segundos
Title
iOS App Crashes When Accessing Firestore Documents Created via iOS - Resolved with Document References and Apple Validation Key Adjustments
Briefly describe your issue in a few words
iOS app crashes when accessing Firestore documents created on iOS devices; resolved by using Document References and updating Apple validation keys.
Description
I am developing a FlutterFlow application that interacts with Firestore for data storage and retrieval. The application functions correctly on Android devices and within FlutterFlow's web test mode. However, a critical issue arises on iOS devices:
Issue Manifestation:
Crash Behavior: When accessing certain Firestore documents created via an iOS device (using TestFlight), the app crashes, displaying a black screen. This crash does not occur when the same documents are accessed on Android devices or when viewed through FlutterFlow's web test mode.
Data Anomalies: Firestore documents created on iOS devices exhibit unexpected
null
values in fields that are correctly populated when the same documents are created on Android devices.Query Failures: Queries utilizing single user queries fail to retrieve data from iOS-created documents, whereas using
DocumentReference
queries successfully retrieves the data without causing crashes.
Technical Details:
Firestore Integration: The application employs Firestore for real-time database functionalities. Data is structured with references and direct queries.
Image Handling: Profile pictures and category images are loaded using
cached_network_image
. Issues are observed with.svg
formats not rendering correctly on iOS, leading to performance degradation and crashes.Error Messages:
Invalid argument(s): No host specified in URI file:///
[FirebaseCrashlytics][I-CLS000000] Crashlytics skipped rotating the Install ID during urgent mode because it is run on the main thread, which can't succeed. This can happen if the app crashed the last run and Crashlytics is uploading urgently.
Environment:
Platforms Tested: iOS (TestFlight), Android (APK and Play Store public test), Web (FlutterFlow test mode)
Tools Used: FlutterFlow, Firebase Firestore, Xcode for iOS build configurations