admin管理员组文章数量:1431413
I am trying to create a dynamic link with branch io. everything is working fine the dynamic link is created successfully but the thumbnail image is not visible on the link even after adding the image url in BranchUniversalObject.
here is the code that i am using for creating dynamic link-
private func generateShareProductDynamicLinkeURL() {
let buo: BranchUniversalObject = BranchUniversalObject()
buo.canonicalIdentifier = "/product/\(productDetailsVM.productDetails?.id ?? "")"
buo.title = productDetailsVM.productDetails?.name ?? ""
buo.contentDescription = productDetailsVM.productDetails?.description
buo.imageUrl = productDetailsVM.productDetails?.imageUrl ?? ""
buo.contentMetadata.contentSchema = merceProduct
buo.publiclyIndex = true
buo.contentMetadata.customMetadata["shareProduct"] = productDetailsVM.productDetails?.id ?? ""
let blp: BranchLinkProperties = BranchLinkProperties()
blp.channel = "whatsapp"
blp.feature = "Product Sharing"
buo.getShortUrl(with: blp) { url, error in
productDetailsVM.isLoading = false
if let url = URL(string: url ?? "") {
shareProductDetails(url)
} else {
print("ERROR: while creating dynamic link - \(String(describing: error))")
}
}
}
The image url is not nil. i have checked it already.
I am trying to create a dynamic link with branch io. everything is working fine the dynamic link is created successfully but the thumbnail image is not visible on the link even after adding the image url in BranchUniversalObject.
here is the code that i am using for creating dynamic link-
private func generateShareProductDynamicLinkeURL() {
let buo: BranchUniversalObject = BranchUniversalObject()
buo.canonicalIdentifier = "/product/\(productDetailsVM.productDetails?.id ?? "")"
buo.title = productDetailsVM.productDetails?.name ?? ""
buo.contentDescription = productDetailsVM.productDetails?.description
buo.imageUrl = productDetailsVM.productDetails?.imageUrl ?? ""
buo.contentMetadata.contentSchema = merceProduct
buo.publiclyIndex = true
buo.contentMetadata.customMetadata["shareProduct"] = productDetailsVM.productDetails?.id ?? ""
let blp: BranchLinkProperties = BranchLinkProperties()
blp.channel = "whatsapp"
blp.feature = "Product Sharing"
buo.getShortUrl(with: blp) { url, error in
productDetailsVM.isLoading = false
if let url = URL(string: url ?? "") {
shareProductDetails(url)
} else {
print("ERROR: while creating dynamic link - \(String(describing: error))")
}
}
}
The image url is not nil. i have checked it already.
Share Improve this question edited Nov 23, 2024 at 16:14 Employed Russian 215k36 gold badges321 silver badges389 bronze badges asked Nov 19, 2024 at 14:02 Ayan AnsariAyan Ansari 776 bronze badges2 Answers
Reset to default 2This started happening to us recently after working for many years. Judging from this page it's possible that they stealthily made this no longer work unless you have a special enterprise contract.
Please note that the $og_image_url social preview feature is reserved for paid Branch accounts with a dedicated contract. If you do not have a paid Branch account, you will not see this feature in the Branch Dashboard.
This FAQ page was "Updated about 1 month ago", and the other FAQ pages were updated 3 years ago.
The only way we can customize it now is by specifying a $fallback_url that already has the desired og_image_url in its metadata, which isn't always ideal.
As pointed out by Michael Tom, this is no longer a feature for the free tier of Branch (as of October 17, 2024).
I reached out to Branch support and this was their response:
Customers not on our Enterprise plans can no longer customize Social Media tags when creating links. You can refer to the following article for details: Can I change my app icon?
本文标签: swiftuiiOSImage is not visible on branchio dynamic linksStack Overflow
版权声明:本文标题:swiftui - iOS - Image is not visible on branch.io dynamic links - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745556464a2663216.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论