Ionic2 Ionic 2 Deeplink:应用程序无法导航到所需页面

Ionic2 Ionic 2 Deeplink:应用程序无法导航到所需页面,ionic2,deep-linking,Ionic2,Deep Linking,我正在使用Ionic 2 Deeplink插件,并在真正的iOS设备上进行测试。我设法让应用程序运行,当点击链接,但应用程序没有导航到所需的页面,在这种情况下,它应该是itemPage,但应用程序直接进入主页。下面是我的代码: Deeplinks.routeWithNavController(this.nav, { '/items/:itemId/': this.itemPage }).subscribe((match) => { console.log('Deep

我正在使用Ionic 2 Deeplink插件,并在真正的iOS设备上进行测试。我设法让应用程序运行,当点击链接,但应用程序没有导航到所需的页面,在这种情况下,它应该是itemPage,但应用程序直接进入主页。下面是我的代码:

  Deeplinks.routeWithNavController(this.nav, {
    '/items/:itemId/': this.itemPage
  }).subscribe((match) => {
    console.log('Deeplink: ' + JSON.stringify(match.$link))
    // match.$route - the route we matched, which is the matched entry from the arguments to route()
    // match.$args - the args passed in the link
    // match.$link - the full link data
    console.log('Successfully matched route: ', JSON.stringify(match));
  }, (nomatch) => {
    // nomatch.$link - the full link data
    console.error('Got a deeplink that didn\'t match', nomatch);
  });

我应该在订阅期间添加this.nav.pushthis.itemPage、itemId以使导航正常工作还是有其他方法?

您在config.xml中的设置是什么?你应该使用像这样的链接:你的url_schema://your_deeplink_host/theAppPath