📜  如何在反应原生 Firebase 动态链接中从收到的链接中提取参数? - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:02.177000             🧑  作者: Mango

代码示例1
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.