How to extract params from received link in react native firebase dynamiclink? code example

Example 1: How to extract params from received link in react native firebase dynamiclink?

I think you are confusing deep links with dynamic links. Dynamic links handle your deep links to content depending upon the platform.

Example you have a deep link: https://example.com/offer?offerid=123456 . You wish to open it in your app depending upon the platform.

Suppose you created a domain for dynamic link from console: https://myapp.page.link

Now you can create a dynamic link which opens the deep linked content on your app. The dynamic link can take in only specific parameters as mentioned here. However you can pass your parameters to your deep link,

https://myapp.page.link/?link=https%3A%2F%2Fexample.com%2Foffer%3Fofferid%3D123456&apn=com.example.app&ibi=com.example.app

The above dynamic link opens the deep link in your android app with package name com.example.app and ios app with bundle ID com.example.app.

Example 2: How to extract params from received link in react native firebase dynamiclink?

I think you are confusing deep links with dynamic links. Dynamic links handle your deep links to content depending upon the platform.

Example you have a deep link: https://example.com/offer?offerid=123456 . You wish to open it in your app depending upon the platform.

Suppose you created a domain for dynamic link from console: https://myapp.page.link

Now you can create a dynamic link which opens the deep linked content on your app. The dynamic link can take in only specific parameters as mentioned here. However you can pass your parameters to your deep link,

https://myapp.page.link/?link=https%3A%2F%2Fexample.com%2Foffer%3Fofferid%3D123456&apn=com.example.app&ibi=com.example.app

The above dynamic link opens the deep link in your android app with package name com.example.app and ios app with bundle ID com.example.app.