gpt4 book ai didi

Firebase 短链接后备链接

转载 作者:行者123 更新时间:2023-12-03 20:29:06 24 4
gpt4 key购买 nike

我正在使用带有链接的 Firebase 动态链接 shortener我想为 Android 和 iOS 之外的客户端定义回退链接。 Manually constructed动态链接有参数ofl这正是我需要的The link to open on platforms beside Android and iOS .但是,缩短器文档中似乎缺少此参数。虽然 ofl在缩短器文档 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范围

最佳答案

通过使用 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/"
},
}
}

关于Firebase 短链接后备链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54402506/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com