invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.69k stars 2.21k forks source link

🔥 Unable to retrieve the params information which is being passed while creating the link programmatically #3731

Closed kushavi2509 closed 4 years ago

kushavi2509 commented 4 years ago

Unable to retrieve the params information which is being passed while creating the link programmatically. I am sharing the current configuration of firebase console /as well as Implemented code.

Current status When I tap on the link it opens. the app store OR app depending upon whether it is installed or not and I can listen for the Dynamic link URL and can log it into the debug console.

What I want to achieve is given below -

Screenshot 2020-06-02 at 7 19 08 PM

Current code that is written to generate the dynamic link: > WhatsApp Image 2020-06-02 at 5 13 34 PM

Code to generate the link const buildLink = async (id) => { const link = await dynamicLinks().buildLink({ link: https://xyz.page.link/navigate_links/, // domainUriPrefix is created in your Firebase console domainUriPrefix: 'https://xyz.page.link', navigation: { forcedRedirectEnabled: true, } }); console.log(link) openShare(link) }

current generated lInk https://xyz.page.link?efr=1&link=https%3A%2F%2Fxyz.page.link%2Fnavigate_links%2F%3Fid%3D%257B5IMgv4vpQLZkP0VFYWN2I7cXYtn2%257D

Code to listen the link useEffect(()=>{ dynamicLinks() .getInitialLink() .then(link => { console.log("link recieved=>", link) }); },[ ]}

Link that is being recieved in app:>

Screenshot 2020-06-02 at 6 24 00 PM
kushavi2509 commented 4 years ago

I didn't receive the URL parameters to extract the blog ID that will help me to navigates to particular blog in the app. The app is opening but not the link is not as I expected it to be.

madvectr commented 4 years ago

Hi, I have a similar issue but only seeing this with Android. The domain is configured such that dynamic link redirects to the deep link on desktops/browsers and to the app for iOS and Android. In iOS the data received is the embedded 'link' field added during dynamic link creation (which is expected) however on Android the dynamic link redirects to the deep link (browser behavior) unlike iOS. The assets.json file has the right SHA-256.

I am kind of stuck on this. Any help would be appreciated!

stale[bot] commented 4 years ago

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

ato-henok commented 4 years ago

Any luck on this? I am also having this issue

sikky99 commented 3 years ago

i am also having this issue

mikehardy commented 3 years ago

Then you should definitely upgrade, this issue was closed in August last year and we've had new versions since then! You could try posting a new issue with the details needed for triage and we could take a look