🐛 [FIREBASE_STORAGE] Different exceptions across platforms (Android and iOS). #8113
Labels
plugin: storage
resolution: duplicate
This issue or pull request already exists
type: documentation
Improvements or additions to documentation
type: enhancement
New feature or request
I notice different errors/exceptions across the Platform when a Firebase Storage deny access, like the issue #8066 but using Firebase Storage.
The exceptions are different by the platform Android and iOS.
This occurs in two cases:
The first case happen when a User WITH AUTORIZATION (by Firebase Storage Rules) try to read a file that DOESN'T EXIST a PlatormException is throw.
Using Android emulator/physical device:
Debug image
Using iOS emulator/physical device:
Debug image
The second case happen when a User WITHOUT AUTORIZATION (by Firebase Storage Rules) try to read a file that EXIST a PlatormException is throw.
Using Android emulator/physical device:
Debug image
Using iOS emulator/physical device:
Debug image
I'm aways use the exception code to know the type of exception. Could be nice normalize these exceptions to record or analyze better using tools like analytics, etc.
Adicional information: I test a lot of cases to validade if the Firebase Rules are working in a real scenario using the emulators and devices, and these are the unique cases that throw
PlatformException
insteadFirebaseException
.firebase_storage: ^10.2.7
flutter version: 2.10.
Regards.
The text was updated successfully, but these errors were encountered: