Skip to content

[firebase_auth][Phone auth][ios] RECAPTCHA deep links are broken since Flutter's 3.27 deep links flag change #17235

Closed
@tpucci

Description

@tpucci

It seems RECAPTCHA deep link are broken since Flutter's 3.27 deep links flag change.

Workaround:

Info.plist

	<key>FirebaseEncodedAppId</key>
	<string>$(FIREBASE_ENCODED_APP_ID)</string>

AppDelegate.swift

  // Handle Firebase Auth post RECAPTCHA deep links
  override func application(
        _ app: UIApplication,
        open url: URL,
        options: [UIApplication.OpenURLOptionsKey: Any] = [:]
    ) -> Bool {
      if let firebaseEncodedAppId = Bundle.main.object(forInfoDictionaryKey: "FirebaseEncodedAppId") as? String,
         url.scheme == firebaseEncodedAppId {
          // Let Firebase handle the URL
          return true
      }
      return super.application(app, open: url, options: options)
  }

FYI I've tried Auth.auth().canHandle(url) but it returns false... I don't know why

Originally posted by @tpucci in #17135

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.platform: iosIssues / PRs which are specifically for iOS.plugin: authresolution: duplicateThis issue or pull request already existstype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions