代码之家  ›  专栏  ›  技术社区  ›  Barry Fruitman

为什么DeepLink助手不启动我的Android应用程序?

  •  2
  • Barry Fruitman  · 技术社区  · 6 年前

    https://actions-on-google.github.io/actions-on-google-nodejs/classes/conversation_question.deeplink.html

    以下是直接来自我的代码的片段:

    app.intent('Default Welcome Intent', conv => {
      conv.ask('Great! Looks like we can do that in the app.')
      conv.ask(new DeepLink({
        destination: 'MyBookApp',
        url: 'https://www.mybooksite.com/read/123456789',
        package: 'com.mybook.app.reader',
        reason: 'handle this for you',
      }))
    })
    
    // Create a Dialogflow intent with the `actions_intent_LINK` event
    app.intent('Get Link Status', (conv, input, arg, status) => {
      // possibly do something with status
      conv.close('Okay maybe we can take care of that another time.')
    })
    

    好吧,也许我们可以下次再处理。 “而不是启动我的应用程序。

    “的处理程序中是否缺少代码?” 获取链接状态

    我是不是把错误的参数传给了 DeepLink 反对?我到处都找不到他们的文件。

    注意:我的应用程序是绝对编码处理 http 深度链接,包括谷歌数字资产链接和我正在测试的深度链接URL的验证,在其他应用程序中运行得非常好。

    如有任何建议或帮助,我们将不胜感激!

    提前谢谢。。。

    1 回复  |  直到 6 年前
        1
  •  1
  •   Leon Nicholls    6 年前

    conv.ask('Great! Looks like we can do that in the app.')
    

    所有的回答都应该至少有一个简单的回答。