Kir*_*nov 4 firebase firebase-dynamic-links
我正在使用带有链接缩短器的 Firebase 动态链接,我想为 Android 和 iOS 之外的客户端定义回退链接。手动构建的动态链接具有ofl完全符合我需要的参数The link to open on platforms beside Android and iOS。但是,缩短器文档中似乎缺少此参数。尽管ofl在shorter docs 中的链接参数描述中提到了When users open a Dynamic Link on a desktop web browser, they will load this URL (unless the ofl parameter is specified)。
是否有可能以某种方式为 Android 和 iOS(例如 Web)之外的客户端添加回退 url 以将用户重定向到那里而不是link参数
小智 5
通过使用 REST API
POST https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=api_key
Content-Type: application/json
{
"dynamicLinkInfo": {
"domainUriPrefix": "https://example.page.link",
"link": "https://www.example.com/",
"androidInfo": {
"androidPackageName": "com.example.android"
},
"iosInfo": {
"iosBundleId": "com.example.ios"
},
"desktopInfo": {
"desktopFallbackLink": "https://www.other-example.com/"
},
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1592 次 |
| 最近记录: |