Closed lkpiel closed 4 months ago
Closing this as a duplicate of https://github.com/firebase/flutterfire/issues/11903.
TLDR: The issue here is that the iOS sdk does not provide a properly formatted message so the plugin cannot parse it properly. See https://github.com/firebase/flutterfire/issues/11903#issuecomment-1822341255
Is there an existing issue for this?
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
iOS
List of dependencies used.
flutter pub deps -s list
Steps to reproduce
Flutter app that uses the
SignInScreen
component fromflutter_ui_auth
acts differently on ios and Android simulators. Raw error messages are shown on the ios simulator when something goes wrong (entering wrong password for example). When the same app is run on an Android emulator it shows the handled version of it: "The supplied auth credential is incorrect, malformed or has expired".Expected Behavior
The default behaviour regarding error handling is the same on both platforms (ios and Android) in case something goes wrong on SignInScreen component
Actual Behavior
On ios simulator the raw error messages are exposed to the user when using SignInScreen component. The errors are formatted when the same app is ran on Android emulator.
Additional Information
This is the ios device error I am getting:
Full error message:
Picture of Android emulator handling the same error:
In addition to the simulator, I ran the app in release mode on a physical ios device, but I still see the raw error message. I didn't see any references to it in documentation so I'd like to understand if these raw errors are only somehow exposed in development or would they appear when I would actually release the app as well ? Is there a way to handle these errors on an ios Simulator ?