我想按以下格式共享我的短网址内容
My Share title
please check below link:
https://link.app.my.app/6pZknA8YNU
-via MyApp
下面是我的代码
let customlink = ((item.url ? item.url : item.url))
let branchUniversalObject = await branch.createBranchUniversalObject('canonicalIdentifier', {
locallyIndex: true,
title: 'News Sharing',
contentDescription: item.title,
contentImageUrl: item.media[0].url,
})
let shareOptions = { messageHeader: '', messageBody: item.title + "\n" + "please check below link:" + "\n" + '-via MyApp' }
let linkProperties = { feature: 'share', channel: 'MyApp' }
let controlParams = { $desktop_url: customlink, $ios_url: customlink, $android_url: customlink }
let { channel, completed, error } = await branchUniversalObject.showShareSheet(shareOptions, linkProperties, controlParams)
当我运行以上代码时,我得到的消息格式为空
My Share title
please check below link:
-via MyApp
https://link.app.my.app/6pZknA8YNU
任何想法我怎么能得到我期望的格式?