社交分享 + 深度链接

时间:2021-02-03 06:57:10

标签: angular cordova ionic-framework deep-linking socialsharing-plugin

我正在尝试实施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。

知道我能做什么吗?

0 个答案:

没有答案
相关问题