coslad Well-Known Member Licensed User Longtime User May 3, 2018 #1 hi it seems that google assistant can accept custom commands https://support.google.com/googlehome/answer/7194656?co=GENIE.Platform=Desktop&hl=en at this time, it was not possible : https://www.b4x.com/android/forum/threads/ok-google-call-or-search-of-app.61651/#post-389084 is there a way to make possible an interact from google home or google assistant with b4a?
hi it seems that google assistant can accept custom commands https://support.google.com/googlehome/answer/7194656?co=GENIE.Platform=Desktop&hl=en at this time, it was not possible : https://www.b4x.com/android/forum/threads/ok-google-call-or-search-of-app.61651/#post-389084 is there a way to make possible an interact from google home or google assistant with b4a?
coslad Well-Known Member Licensed User Longtime User May 5, 2018 #2 It seems that in this way it is possible to connect Google assistant whit an app : https://support.google.com/googlehome/answer/7194656?co=GENIE.Platform=Android&hl=en&oco=1 please forum's guru , take a look ! Upvote 0
It seems that in this way it is possible to connect Google assistant whit an app : https://support.google.com/googlehome/answer/7194656?co=GENIE.Platform=Android&hl=en&oco=1 please forum's guru , take a look !
Erel B4X founder Staff member Licensed User Longtime User May 6, 2018 #3 coslad said: It seems that in this way it is possible to connect Google assistant whit an app : https://support.google.com/googlehome/answer/7194656?co=GENIE.Platform=Android&hl=en&oco=1 Click to expand... This page explains how to use it with IFTTT app. Upvote 0
coslad said: It seems that in this way it is possible to connect Google assistant whit an app : https://support.google.com/googlehome/answer/7194656?co=GENIE.Platform=Android&hl=en&oco=1 Click to expand... This page explains how to use it with IFTTT app.
coslad Well-Known Member Licensed User Longtime User May 6, 2018 #4 Thank , Google has published the assistant sdk,it is very interesting : https://developers.google.com/assistant/sdk/ But meanwhile a b4a library for assistant sdk is ready I am trying to use ifttt service to connect my app to google home mini. With ifttt I can get a firebase push notification through they webhook service , but I didn't know what write into the field. To send the push message, the webhook needs an url and a body message, the URL I think is https://fcm.googleapis.com/fcm/send But I can understand what write into body field. Upvote 0
Thank , Google has published the assistant sdk,it is very interesting : https://developers.google.com/assistant/sdk/ But meanwhile a b4a library for assistant sdk is ready I am trying to use ifttt service to connect my app to google home mini. With ifttt I can get a firebase push notification through they webhook service , but I didn't know what write into the field. To send the push message, the webhook needs an url and a body message, the URL I think is https://fcm.googleapis.com/fcm/send But I can understand what write into body field.
Erel B4X founder Staff member Licensed User Longtime User May 6, 2018 #5 You can create a simple B4J server that will intercept the http messages and then do whatever you need. Upvote 0
You can create a simple B4J server that will intercept the http messages and then do whatever you need.
coslad Well-Known Member Licensed User Longtime User May 6, 2018 #6 Yes ,I know but my app is for home automation system and the server (android box) is behind an dynamic ip , and I don't want to use an external static IP server, so I would like to use firebase notification. This is what I found but I can't understand how use it with webhook https://firebase.google.com/docs/cloud-messaging/send-message#send_messages_to_specific_devices Can you tell me what write into body field to send a post to fcm? Thanks Last edited: May 6, 2018 Upvote 0
Yes ,I know but my app is for home automation system and the server (android box) is behind an dynamic ip , and I don't want to use an external static IP server, so I would like to use firebase notification. This is what I found but I can't understand how use it with webhook https://firebase.google.com/docs/cloud-messaging/send-message#send_messages_to_specific_devices Can you tell me what write into body field to send a post to fcm? Thanks
DonManfred Expert Licensed User Longtime User May 6, 2018 #7 coslad said: I can't understand how use it with webhook Click to expand... it is not posible with the webhook as you need to have a public accessible url which you need to call. In this case it is the FCM Push send url. BUT you also need to authenticate yourslf against Firebase. This must be done by setting a specific header with the http request. But you are not able to set this header in a webhook. Upvote 0
coslad said: I can't understand how use it with webhook Click to expand... it is not posible with the webhook as you need to have a public accessible url which you need to call. In this case it is the FCM Push send url. BUT you also need to authenticate yourslf against Firebase. This must be done by setting a specific header with the http request. But you are not able to set this header in a webhook.
DonManfred Expert Licensed User Longtime User May 6, 2018 #8 Setting up a B4J Server or even some small php-Scripts hosted somewhere should do the trick Upvote 0
coslad Well-Known Member Licensed User Longtime User May 6, 2018 #9 Thanks Don now it is more clear ! I'll use some trick waiting a B4x Library . Upvote 0