I have developed an android app that consumes an API. It plays music each time the API sends a request to the app. I want to install this app on the Google home device, In other words, I want the google home device to play the music whenever it receives a request from the API...How can I do that?
-
2As far as I know, you can't install apps on a Google Home device. You can develop actions which is very different from developing an android app. – Alexander Hoffmann Jan 15 '19 at 14:47
-
I read about actions, but the problem is that the action is invoked with voice command...I need to invoke the action from a request from the API...Is that possible? Thank you – Ammar Ismaeel Jan 15 '19 at 14:58
-
1You can't proactively invoke actions on a Google Home through a developer API. – Nick Felker Jan 15 '19 at 22:39
1 Answers
What you're trying to do has a number of problems, and a few involved with your perception of how things work on a Home device and with the Assistant.
The Google Home doesn't run Android, and you can't "install" your app on it. In fact, you don't "install" apps on a Home device at all. Instead, they act more like a web browser and access their Actions that run in the cloud.
The Assistant platform and Actions on Google are mostly conversation driven, and primarily driven by the user initiating the conversation. Notifications are fairly limited. This is to put users in control.
However, Home devices are also Cast enabled devices. So you may be able to have your mobile device be triggered through the API, and have it issue a Cast command to the device begin playback. There are restrictions on how you can initiate casting from a mobile device, however, so this may not be a good solution in your case.

- 49,922
- 7
- 53
- 105