[Dynamic Links] How to get query parameters from dynamic link? #5579
Replies: 50 comments 12 replies
|
Same here. How to get query parameters from firebase dynamic link inside app? https://testapp.page.link/ios?param=paramValue |
|
Same here, when |
|
I fixed by the following document https://firebase.google.com/docs/dynamic-links/create-manually |
|
Any news on this? |
|
You can do this. Where your query param is |
|
The approach of @KingIdee is the correct one. Example, following @karapetyan question: |
|
is it possible to pass dynamic query parameters instead of plain parameters? normally an application creates a token from backend and send a link to the email with a token, how can I pass that token to the dynamic link? right now I can get a query parameter if is defined in the console with ?parameter but no matter if my link has a value, in the console as the parameter has no value at all I get null, if I add in the console ?parameter=xxx I get xxx but, that's not the idea. so, anyone can please help me out to understand this, since the documentation has no enough information regarding this. |
|
I face the same issue, the query parameters are lost during URL conversion. |
|
It's really bizarre that the e-mail templating system from Firebase auth is essentially incompatible with dynamic links. In the Firebase docs here: It says:
Bolded section being key. However, Firebase e-mail templating attaches the mode and code query parameterrs Because firebase will tack on the query parameters without URLEncoding them, resulting in a link that looks like: Notice the ampersand Since the dynamic link system knows nothing about "oobCode" and other parameters, it will simply drop them, and the final link will miss the necessary context to complete the operation. |
|
Any updates on this? I'm also facing the same issue. |
|
You can use https://pub.dev/packages/uni_links. This will help in getting the raw URL having query params also. So you don't need to use the flutter dynamic links package if you don't need the retrieving link data. I know this is not the solution we really need, but it works at least for now |
Uni links is totally different use-case unrelated to this issue. This is about firebase dynamic links losing initial query parameters. |
Of course, this is not related to Firebase Dynamic Links, I just explained how to make the things work. Uni_links helped my project to achieve what I need that which cant be done with Dynamic links |
I’m happy it works for you an uni_links is great. It just is not a workaround for this issue you are commenting on. |
|
Any updates on this? |
|
The problem is inside Firebase REST API, but can be fixed from the plugin as well. This call returns: Then the URL sent back to Flutter is the URL got from the response from the This is what I noticed for iOS. |
|
Has this been fixed yet? branch.io actually supports params without going for the long url, i had to jump from firebase to branch, and now branch is having issues so i'm trying to go back to firebase once more |
|
Is there any plans for a solution to this? With the main issue being closed it appears not. This is basic functionality that should exist. Without this short links are completely unusable in our use case (web users on mobile or desktop devices). We need to append something that uniquely identifies a user like an id. https://short.link/QQQQ?id=1234 should not dump the query params on redirect. I tried using anchor links instead, which do get passed (https://short.link/QQQQ#test or even https://short.link/QQQQ/#/test) however mobile browsers drop the anchor link / fragment. Works fine on web but this was a hack to try and restore functionality that should exist out of the box. |
|
Sorry, is there any update on this issue? Unless I miss something, in our case where we use dynamic links for email password reset, the oobCode, mode and apiKey params are removed! |
|
You can use another package to handle the link like https://pub.dev/packages/uni_links or https://pub.dev/packages/app_links because firebase dynamic is just a place to register a domain and link for your app. in the end, it's just an app link or universal link. I've been tested and it works. |
|
Same problem, and finally i got this conclusion :
there are 2 options with firebase dynamic links :
Good luck my friend....(sorry my english is very bad...) |
|
I suppose that problem occurs by the way the dynamic link is built. The Firebase Dynamic Link requires Dynamic Link parameters to configure your query parameters in your dynamic link. I will highlight the Dynamic Link format that does work for me below: https://your.subdomain.page.link/?link=your_deep_link&apn=android.package.name&ibi=ios.package.name&ius=your.custom.url.schemeThe link above should work well on the Android platform. However, for the IOS platform there’re two more tricks:
|
|
There is a See this: |
|
So it was never solved? |
|
It seems like this still hasn't been solved. I haven't managed to pass a custom property to a deeplink to be resolved in-app, such as activation code / coupon / etc. |
|
Ok, I figured it out, and it should be a final solution to this. You definitely need to follow manually creating a dynamic link, but it doesn't tell you that you NEED to implement some tags in order to open up the correct app since it's going around what's in the Firebase Dynamic Link dashboard. So, based on this: https://firebase.google.com/docs/dynamic-links/create-manually, I've constructed a following link:
Where you must specify correct bundle id to open up the app, I'm not sure about the version (amv) or isi, but ibi and ius is required. After that when you resolve the link in the navigator, I get:
From where it's easy to resolve the id query param in the URL prop. Note that custom part is passed to the link parameter in the link, not in the initial path, since that's hardcoded in the firebase URL. You probably do need one base dynamic link defined in the dashboard so you get proper page.link web generated. Let me know if this works, it's been a journey. |
|
Hi everyone, I am following the Firebase instructions for Sign-in with Email Link (
which resolves to...
The part starting from &mode=signIn becomes parameters of my.page.link and not of https://example.com, which means my app received the deep link only as 'https://example.com' and so |
|
Hey guys, if you guys are still stuck. I have this solution. it so basically but work.
example I holp it can help you guys. |
|
Try Below the mentioned solution. It's worked for me FirebaseDynamicLinks dynamicLinks = FirebaseDynamicLinks.instance; |



Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
The documentation does not describe how to get a dynamic link URL or its query parameters. Attention! Dynamic link query parameters, not included deeplink!
All reactions