Firebase dynamic link support custom parameters?

I don't think you can use the short url: https://<my app>.app.goo.gl/Gk3m unless you create one for each user, but you can use the long url: https://<my app>.app.goo.gl/?link=https://example.com/?token=fccfc8bfa07643a1ca8015cbe74f5f17 ...(add other parameters as needed) and set new token for each user.

I assume you generate the tokens automatically. In that case you can use this to shorten the links.


If you want to use dynamic links with custom arguments with REST, here is an example of a payload:

{
  "dynamicLinkInfo": {
        "dynamicLinkDomain": "example.app.goo.gl",
        "link": "http://someurl.com?my_first_param=test&my_second_param=test2"
  },
  "suffix": {
     "option":"UNGUESSABLE"
    }
}

Make sure your remove 'https://' from your dynamicLinkDomain

Julien


Case A. If you want the short link to expand to a link with multiple parameters:

In the part where you setup a dynamic link, any parameter you append to the deep link URL will go on all platforms (web, iOS, android) enter image description here

Case B. If you want to use dynamic parameters, you should use the api to create a short link

see documentation


1) From https://console.firebase.google.com/ (no need for custom parameter here.)

enter image description here

2) Create link somewhere, f.e. on your confluence page (here we add our parameter):

https://PROJECTNAME.page.link/?link=https://PROJECTNAME.page.link/LINKNAME?PARAMETER=1&ofl=https://www.PROJECTNAME.com/

PARAMETER is your custom parameter.

ofl is a link where to go if click the link from another platform (PC, Mac).

3) Getting link data from android project Kotlin code:

Firebase.dynamicLinks
        .getDynamicLink(intent)
        .addOnSuccessListener { pendingDynamicLinkData ->
            val parameter: String =
                pendingDynamicLinkData?.link?.getQueryParameter("PARAMETER").orEmpty()
        }