Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't put custom parameters to Firebase Dynamic links

I need to put custom query params to firebase dynamic link leading to AppStore. Once a user has installed the app I need to get that URL with query params.

I tried to build both short and long dynamic links, but it doesn't work.

Firebase dynamic link configuration for https://myApp.page.link/ios: enter image description here

Things I've tried:

1) https://myApp.page.link/ios/?link=https://apps.apple.com/ru/app...&ifl=https://www.google.com&gclid=4324234

2) https://myApp.page.link/?link=https://apps.apple.com/ru/app...&gclid=4324234

3) https://myApp.page.link/?link=https://apps.apple.com/ru/app...?gclid=4324234

4) https://myApp.page.link/?link=https://apps.apple.com/ru/app...&ifl=https://www.google.com&gclid=4324234

Inside the app I try to get the initial link using flutter firebase_dynamic_links pub package and i always get only link, leading to AppStore with no query params.

What am I doing wrong? How should links look like to be able to put custom param into app?

like image 252
alectogeek Avatar asked Jan 20 '26 09:01

alectogeek


1 Answers

You need to make sure that the parameters of your deep link are URL Encoded. For example, if your deep link look like this:

https://example.com/login?token=GDGEGDFGE345DF

Then your long dynamic link should look something like this:

https://example.page.link/?link=https://example.com/login?token%3DGDGEGDFGE345DF&apn=com.my.app.package&ibi=com.my.app.bundle

As you can see the token= parameter becomes token%3D, the = sign is encoded. Otherwise, firebase_dynamic_links cannot parse your deep link correctly and you may not get any query parameters back.

like image 174
Daniil Avatar answered Jan 23 '26 06:01

Daniil



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!