Skip to content
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

How to get queryParams in Deeplink? #179

Open
RB-93 opened this issue May 9, 2023 · 1 comment
Open

How to get queryParams in Deeplink? #179

RB-93 opened this issue May 9, 2023 · 1 comment

Comments

@RB-93
Copy link

RB-93 commented May 9, 2023

I am facing an issue in implementing deeplink using this package.
All this are done as per the documentation.
I managed all deeplinks on Firebase Console - Dynamic Links page.

Deeplink tapped from text message...

Deeplink example: https://xyz.com/userprofile?name=ABC

(operation performed on Android Platform)

  1. User taps on Deeplink from text message,
  2. App chooser bottom sheet opens up listing the app, browser options

When user selects the browser option say Chrome, the deeplink fetched contains all query params i.e., name=ABC in above deeplink example
But, when user selects the App option, the deeplink is fetched but without query params!

@tiagoon
Copy link

tiagoon commented Jul 19, 2023

You can use Dart's own Uri

void main() {
  final String initialLink = "https://example.com/?user=1&code=99"; 
  Uri uri = Uri.parse(initialLink);
  print(uri.queryParameters);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants