I like to share the app link through social media so that when the receiver click the shared link it will open the App installed with the information shared(deep linking).
(我喜欢通过社交媒体共享应用程序链接,这样当接收者单击共享链接时,它将打开安装了共享信息(深度链接)的应用程序。)
Please find the code here : (请在这里找到代码:)
onShare = (articleShare) => {
(onShare =(articleShare)=> {)
debugger;
console.log('THis is article');
try {
const result = Share.share({
title: articleShare.articleTitle,
message: articleShare.articleContent,
url:'AppName://ArticleDetail/'+articleShare._id,
},
{dialogTitle: 'Share Article',});
if (result.action === Share.sharedAction) {
Meteor.call('ShareArticleNotification', articleShare);
}
;
} catch (error) {
alert(error.message);
}
;
};
ask by Omkar translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…