[英]Implemanting / Integrating google voice action / google assistant in my app
[英]Issues while Integrating Google assistant with my app
我正在嘗試將Google Assistant集成到我的健身應用程序中,以便當用戶說“在xyz應用程序上開始鍛煉”時,我的應用程序啟動。 我在這里觀看了視頻: https : //developers.google.com/actions/app/
並將其添加到我的清單中:
<meta-data android:name="com.google.android.actions"
android:resource="@xml/actions"/>
然后將這些詳細信息添加到我的actions.xml文件中:
<?xml version="1.0" encoding="utf-8"?>
<actions>
<action intentName="actions.intent.START_EXERCISE">
<fulfillment urlTemplate="https://xyz.in{?exercise}">
<parameter-mapping
intentParameter = "exercise.name"
urlParameter = "exercise"
/>
</fulfillment>
</action>
</actions>
仍然沒有得到理想的結果。 我在這里做錯了。
您應該使用Android Studio中的App Actions測試插件來觸發操作:
https://plugins.jetbrains.com/plugin/12322-app-actions-test-tool
安裝插件后,您可以在“工具”下找到它,然后可以為應用程序+參數定義調用名稱。
從開始,您可以觸發它說“好吧,谷歌,在xyz應用程序上開始鍛煉”
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.