firebase / flutterfire

πŸ”₯ A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.71k stars 3.97k forks source link

πŸ› [ firebase_dynamic_links] Your issue title here #11419

Closed Ramghosh16RG closed 1 year ago

Ramghosh16RG commented 1 year ago

Bug report

Describe the bug A clear and concise description of what the bug is. to fix this error, you need to configure the Dynamic Links domain for your project. You can do this in the Firebase Console. Once you have configured the domain, you should be able to send email verification links without any errors.

Steps to reproduce

Steps to reproduce the behavior:

Here are the steps on how to configure the Dynamic Links domain for your project:

1) Go to the Firebase Console. 2) Click on the "Dynamic Links" tab. 3) Click on the "Domain settings" tab. 4) Enter the domain name for your project. 5) Click on the "Save" button.

Expected behavior

The expected behavior for the problem is that the email verification link should be able to open the user's app on iOS without any errors.

When you send an email verification link to a user, Firebase will use Dynamic Links to open the link in the user's app, regardless of the platform. If the Dynamic Links domain for your project is configured, then Firebase will be able to create the link and open it in the user's app.

However, if the Dynamic Links domain for your project is not configured, then Firebase will not be able to create the link. This will cause the error message "DYNAMIC_LINK_NOT_ACTIVATED : FDL domain is not configured".

The expected behavior is that the error message should not be displayed. The email verification link should be able to open the user's app on iOS without any errors.

Here are some possible reasons why the error message is being displayed:

The Dynamic Links domain for your project is not configured. The Dynamic Links domain for your project is configured incorrectly. There is a problem with the Firebase SDK. To fix the error, you need to configure the Dynamic Links domain for your project. You can do this in the Firebase Console. Once you have configured the domain, you should be able to send email verification links without any errors.

If you are still getting the error message after configuring the domain, then you can try the following:

Check the Dynamic Links domain for your project to make sure that it is configured correctly. Update the Firebase SDK to the latest version. File a bug report with the Firebase team.

Sample project

Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix. Sure, here is a sample project that demonstrates the issue:

import UIKit import Firebase

class ViewController: UIViewController {

override func viewDidLoad() {
    super.viewDidLoad()

    // Create a Dynamic Link with the email verification URL.
    let link = DynamicLink(url: URL(string: "https://www.example.com/email-verification")!,
                            options: DynamicLinkOptions(domain: "your-domain.firebaseapp.com"))

    // Send the Dynamic Link to the user.
    let email = "user@example.com"
    link.sendEmailVerification(to: email) { (error) in
        if let error = error {
            // Handle the error.
            print(error)
        } else {
            // The email verification link was sent successfully.
            print("Email verification link sent successfully.")
        }
    }
}

}

Please link to the public repository URL. https://github.com/Ramghosh16RG/Empty-Firebase-Project

Additional context

The problem is specific to iOS. On Android, the Dynamic Links domain is not required for email verification. The problem is caused by the fact that the Dynamic Links domain for the project is not configured. The error message "DYNAMIC_LINK_NOT_ACTIVATED : FDL domain is not configured" is displayed when the Dynamic Links domain is not configured. The problem can be fixed by configuring the Dynamic Links domain for the project. The Dynamic Links domain can be configured in the Firebase Console. Once the Dynamic Links domain is configured, the error message should no longer be displayed.


Flutter doctor

Run flutter doctor and paste the output below: Doctor summary (to see all details, run flutter doctor -v): [βœ“] Flutter (Channel stable, 2.10.4, on macOS 12.4.1 21F79 darwin-arm64, locale en-US) [βœ“] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [βœ“] Xcode - develop for iOS and macOS (Xcode 13.4.1) [βœ“] Chrome - develop for the web [βœ“] Android Studio (version 2021.3) [βœ“] IntelliJ IDEA Ultimate (version 2021.3.2) [βœ“] VS Code (version 1.66.2) [βœ“] Connected device (1 available)

β€’ No issues found!

Click To Expand ``` PASTE OUTPUT INSIDE HERE ``` βœ“] Flutter (Channel stable, 2.10.4, on macOS 12.4.1 21F79 darwin-arm64, locale en-US) [βœ“] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [βœ“] Xcode - develop for iOS and macOS (Xcode 13.4.1) [βœ“] Chrome - develop for the web [βœ“] Android Studio (version 2021.3) [βœ“] IntelliJ IDEA Ultimate (version 2021.3.2) [βœ“] VS Code (version 1.66.2) [βœ“] Connected device (1 available) β€’ No issues found!

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

This file lists all of the direct and indirect dependencies of your project.

It can be used to rebuild your project's package dependencies and

to generate documentation for your project.

To learn more about this file, see:

https://dart.dev/tools/pub/dependencies

dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.4 firebase_auth: ^3.3.7 firebase_core: ^1.12.0

Click To Expand ``` PASTE OUTPUT INSIDE HERE ``` # This file lists all of the direct and indirect dependencies of your project. # It can be used to rebuild your project's package dependencies and # to generate documentation for your project. # To learn more about this file, see: # https://dart.dev/tools/pub/dependencies dependencies: flutter: sdk: flutter cupertino_icons: ^1.0.4 firebase_auth: ^3.3.7 firebase_core: ^1.12.0

danagbemava-nc commented 1 year ago

Hi @Ramghosh16RG, are you responding to a particular issue or reporting an issue? If the former, please comment on that issue instead. If the latter, kindly update your issue description with the required information so that it may be properly addressed.

Thank you

google-oss-bot commented 1 year ago

Hey @Ramghosh16RG. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 1 year ago

Since there haven't been any recent updates here, I am going to close this issue.

@Ramghosh16RG if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.