问题
I am developing an android application, let's say it for an instance as "RemindMe". In this application, I set alarms specific to application level. They are not system alarms. My requirement is, after the opening of Google assistant (Ex: by saying "OK Google" followed by "What is my next alarm in RemindMe application", it should fetch next alarm from "RemindMe" application (No need to open the RemindMe app) and show in Google voice Assistant.
I checked DialogFlow (https://dialogflow.com/). I could not achieve my requirement. Till date in my observation., Using DialogFlow, after opening the RemindMe app, I can say "what is my next alarm", I can fetch the next alarm time and show. But this is not my requirement where I want it without opening the app.
I checked Google custom Voice Actions - https://developers.google.com/voice-actions/custom-actions, I found a note saying - (Note: We are not accepting requests for Custom Voice Actions. Stay tuned to Voice Actions - Google Developers and +GoogleDevelopers for product updates).
Please let me me know if Iam somewhere incorrect or not clear. Please help me in this. Thanks in Advance! :)
回答1:
What you will be looking for most likely is App Actions, which is going to open up to a developer preview soon. This system will allow applications to make content available through the Google Assistant by presenting actions that will allow the user to deep link into your application.
You can watch the presentation from I/O that goes into detail of how these actions can be created.
来源:https://stackoverflow.com/questions/50507085/how-to-access-my-android-application-from-google-voice-assistance