Actions on google 在智能手机上从google assistant打开自定义应用程序

Actions on google 在智能手机上从google assistant打开自定义应用程序,actions-on-google,google-home,google-assistant-sdk,api-ai,Actions On Google,Google Home,Google Assistant Sdk,Api Ai,问题是, 我正在开发一个谷歌助手应用程序,我应该向用户显示一个列表,当他按下列表中的项目时,我应该打开另一个应用程序。 我能够使用以下方法创建列表:- app.askWithList(app.buildRichResponse() .addSimpleResponse('Alright') .addSuggestions( ['Basic Card', 'List', 'Carousel', 'Suggestions']), app.build

问题是, 我正在开发一个谷歌助手应用程序,我应该向用户显示一个列表,当他按下列表中的项目时,我应该打开另一个应用程序。 我能够使用以下方法创建列表:-

app.askWithList(app.buildRichResponse()
      .addSimpleResponse('Alright')
      .addSuggestions(
        ['Basic Card', 'List', 'Carousel', 'Suggestions']),
      app.buildList('Things to learn about')
      .addItems(app.buildOptionItem('MATH_AND_PRIME', ['math', 'math and prime', 'prime numbers', 'prime'])
        .setTitle('Math & prime numbers')
        .setDescription('42 is an abundant number because the sum of its ' +
          'proper divisors 54 is greater…')
        .setImage('http://example.com/math_and_prime.jpg', 'Math & prime numbers'))
      .addItems(app.buildOptionItem('EGYPT', ['religion', 'egpyt', 'ancient egyptian'])
        .setTitle('Ancient Egyptian religion')
        .setDescription('42 gods who ruled on the fate of the dead in the ' +
          'afterworld. Throughout the under…')
        .setImage('http://example.com/egypt', 'Egypt')
      )
      .addItems(app.buildOptionItem('RECIPES', ['recipes', 'recipe', '42 recipes'])
        .setTitle('42 recipes with 42 ingredients')
        .setDescription('Here\'s a beautifully simple recipe that\'s full ' +
          'of flavor! All you need is some ginger and…')
        .setImage('http://example.com/recipe', 'Recipe')
      )
    );

有人知道怎么做吗?

Google Assistant不支持推送消息,因此当用户选择某个内容时,您需要使用Fcm/Gcm从您的履行中发送推送消息。这意味着您需要在应用程序中实现推送消息,您需要帐户链接和oauth2服务器。至少目前需要做很多工作。

因此,作为一种解决办法,我甚至可以在选择列表中的项目时打开一个url吗?是的,您发送一个url,当用户选择该项目时,浏览器将打开,但如何做?询问如何发送url是一个稍微不同的问题,最好是再问一个问题StackOverflow@MohamedMitwalyStackoverflow不是一个论坛,向上投票(如果你愿意),如果回答了你的问题,就接受答案。还有一个问题吗?然后问一个新问题。