我正在尝试实施socialSharing + deepLinking,但我没有取得任何成果。
这就是我所拥有的(几乎没有):
app.component.ts:
setupDeepLinks(){
this.deepLinks.route({
}).subscribe(match => {
console.log('Success: ', match);
},noMatch => {
console.error('Error', noMatch);
});
}
detail.component.ts(分享按钮所在的位置):
this.socialSharing.share(
this.presentation.name,
'',
'',
'myapp://mydemoapp.com'
);
share() 中作为参数放置的 url 应该是应该在外部应用程序中显示的 url,但这些应用程序将其解释为纯文本,而不是链接。
我正在使用 ionic6。
知道我能做什么吗?