Skip to content

Firebase phone auth in IOS Simulator not working every alternate time #325

@cloudcerebro

Description

@cloudcerebro

Please thumbs up this issue if you have also experienced it. You may also add more information if there is something relevant that was not mentioned. However, please refrain from comments that are not constructive, like "I have this problem too", etc.

Expected behavior (required)

Logs in to home screen after phone sign-in

Current behavior (required)

On entering the app, the user enters the phone number and clicks Login button. A webview is opened to verify if we are a robot and on returning back to the app, it does not enter Verify code page first time.

If we are entering the phone number and click login button again, the webview opens again and on returning, it enters the verify code page.

If we sign-out and login in again, then not working. It works every alternate time.

Exception received in debugger:

flutter: Another exception was thrown: Exception: 'package:go_router/src/go_router_delegate.dart': Failed assertion: line 443 pos 12: 'matchStacks.isNotEmpty': no routes for location: /link?deep_link_id=https%3A%2F%2Fproject-mux-copy.firebaseapp.com%2F__%2Fauth%2Fcallback%3FauthType%3DverifyApp%26recaptchaToken%3D03AD1IbLD5lbIoELlZKNcGhNMuBwbwElNBCZ7vUnVM6A5V4SOtbHvD1ZxLAutMNyEJsYO20lpixw.......

It works on Android emulator.

To Reproduce (required)

  1. Download code
  2. Open in VS Code
  3. Install dependencies
  4. Choose IOS Simulator as target
  5. Run Debug
  6. Enter Phone number '+919876598765' (Firebase Phone number for testing) and click Login
  7. Enters Verification Webview and returns back to Login page, and stops, hence not working.
  8. Again enter phone number and click Login.
  9. Enters Verification Webview and returns back to Login page, then continues to VerifyCode page (Code: 111111), hence working.

Bug Report Code (required, generate from Widget Tree)

IT4wj8mBxItOsbRe1aqMbflFmiQXCDo1U40ZkcFDQis9f5CvOpYUec/6P05pTfG4Twk7e2emp14DpsGOuIXhK+1fJSeCc4h7/5AJZTzMfGCjRbHfU/HUACkbeacOQSj6

Context (required)

User can't login to the application the first time.

Screenshots / recordings

Screen recording

Project Link:
Project link

Your environment

  • Version of FlutterFlow used: 3.0 (Released on December 30, 2022 - Flutter 3.3.4
  • Platform (e.g. Web, MacOS Desktop): IOS
  • Browser name and version: IOS Simulator (iPhone 14 Pro Max)
  • Operating system and version (desktop or mobile): iOS 16.2

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions