Skip to content

🐛 [Dynamic Links] Reference data lost in iOS #10336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amilkarSingular opened this issue Jan 27, 2023 · 5 comments
Closed

🐛 [Dynamic Links] Reference data lost in iOS #10336

amilkarSingular opened this issue Jan 27, 2023 · 5 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot Stale Issue with no recent activity triage Issue is currently being triaged. type: bug Something isn't working

Comments

@amilkarSingular
Copy link

amilkarSingular commented Jan 27, 2023

Bug report

Describe the bug
I have been using Firebase dynamic links in android and ios. The issue is in iOS

Steps to reproduce

Steps to reproduce the behavior:
If have not app installed and I click the link, it redirect to store and then the app with data link, It is working fine in Android, but in iOS the reference and the data lost.

Also in Android after the link redirect to store and I dont click in CONTINUE button, the data is lost too

Expected behavior

Get the reference and data once I install the app

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.
Please link to the public repository URL.


Additional context

Add any other context about the problem here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand

[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.19044.2486], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[√] Chrome - develop for the web
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2021.3)
[√] VS Code (version 1.74.3)
[√] Connected device (4 available)
[√] HTTP Host Availability


Flutter dependencies

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

Click To Expand

firebase_dynamic_links: ^5.0.5


@amilkarSingular amilkarSingular added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Jan 27, 2023
@amilkarSingular amilkarSingular changed the title 🐛 [Dynamic Links] Reference data loosed in iOS 🐛 [Dynamic Links] Reference data lost in iOS Jan 27, 2023
@darshankawar darshankawar added the triage Issue is currently being triaged. label Jan 30, 2023
@darshankawar
Copy link

Thanks for the report @amilkarSingular
Can you provide a minimal code sample that shows the behavior you are reporting ?
Also please elaborate on when you says reference data is lost ? What should be the expected result ?

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Jan 30, 2023
@amilkarSingular
Copy link
Author

This is my code:

Future<void> initDynamicLinks() async {
    final PendingDynamicLinkData? data = await FirebaseDynamicLinks.instance.getInitialLink();
    final Uri? dynamicLinkData = data?.link;
    if (dynamicLinkData != null && dynamicLinkData.queryParameters != null) {
      Map<String, dynamic> data = dynamicLinkData.queryParameters;
      if(dynamicLinkData.path == '/signUp'){
        Navigator.push(context, MaterialPageRoute(builder: (context) => SignUpView(data: data),));
      }
    }
    dynamicLinks.onLink.listen((dynamicLinkData) {
      print(dynamicLinkData.link.path);
      Map<String, dynamic> data = dynamicLinkData.link.queryParameters;
      print(data);
      if(dynamicLinkData.link.path == '/signUp'){
        Navigator.push(context, MaterialPageRoute(builder: (context) => SignUpView(data: data),));
      }
    }).onError((error) {
      debugPrint('onLink error');
      debugPrint(error.message.toString());
    });
  }

And when I say the data is lost, is because when the app is redirecting from Store to App after install, the data in dynamic link is lost. It is just in iOS

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Jan 30, 2023
@darshankawar
Copy link

Please check if this issue and underlying comments helps in your case.

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels Jan 31, 2023
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Feb 9, 2023
@google-oss-bot
Copy link

Hey @amilkarSingular. 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
Copy link

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

@amilkarSingular 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.

@firebase firebase locked and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot Stale Issue with no recent activity triage Issue is currently being triaged. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants