admin管理员组文章数量:1393874
I would like to integrate for my app voice commands, like “ok google open MyApp” or “ok google open a file in MyApp”
I am creating an app with Flutter in dart and so I would like to do first the work for google/android and then siri/apple I started with google, and I am using visual code, so not directly in android studio by reading some documentation and also using chatgpt or gemini, I was able to correctly edit my manifest file, my rooter and correctly added an action file.
Running some commands from terminal my opens correctly in the emulator ,
adb shell am start -a android.intent.action.VIEW -d "MyApp://open"
now I would like to do it on the physical phone, but there are some things that are not clear to me reading also some online documentation or seeing some examples
Following this documentation tells me to create a shortcuts.xml file
after which I should install the Google Assistant plugin and here I have the first problem
I think I understand that I have to install it from Android Studio, even though I am working in Visual Code
I open Android Studio, but I can't find the Plugin
I searched on the net and on the documentation page
I find the message Not compatible with the version of your running IDE (Android Studio Meerkat | 2024.3.1 Patch 1)
So I didn't understand how to move forward on this. It doesn't seem to me that within Flutter or in the build.gradle I need to do something
Then I understood that I can create an array.xml file to associate different words with commands
Finally, it is not clear to me if I am forced to upload the application to the Google Play Console or I can do some testing first
so, you guys can give me some advice for how to install Foofle Assistent for my Application in Flutter and give some tests with an Android phone
also I would like to know how do I say “Ok google Open a Test dossier with Myapp” is google able to understand the phrase or do I have to set it?
Thanks
本文标签: androidAdd Google Assistent in Flutter projectStack Overflow
版权声明:本文标题:android - Add Google Assistent in Flutter project - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744082393a2587887.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论