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

Install app via dynamic link is not receiving the link(and params) after opening the app #5157

Closed
1 of 10 tasks
gayathrithedev opened this issue Apr 11, 2021 · 1 comment
Closed
1 of 10 tasks
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report

Comments

@gayathrithedev
Copy link

gayathrithedev commented Apr 11, 2021

Issue

Describe your issue here

When user click on the dynamic link... it is taking the user to play store to install the app. After successful installation when opening the app the incoming link is not received to read the params over the url. Again I need to click on the link to receive the params over the url.

Project Files

Javascript

Attached the code snippet how I am trying to read the params over the incoming url

React.useEffect(() => {
    dynamicLinks()
      .getInitialLink()
      .then((link) => {
        const url_string = link?.url;
        var regex = /[?&]([^=#]+)=([^&#]*)/g,
          params = {},
          match;
        while ((match = regex.exec(url_string))) {
          params[match[1]] = match[2];
        }
        const sid = params?.sid;
        if (sid) {
            navigate('ViewVideo', {
              sid: sid,
            });
        }
      });
  }, []);

package.json:

# N/A

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


@gayathrithedev gayathrithedev added help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report labels Apr 11, 2021
@mikehardy
Copy link
Collaborator

Maybe #4548, maybe #2660 but you skipped the template, so we have nothing to reason on
Issues with no template are closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: needs-triage Issue needs additional investigation/triaging. type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants