Refer me to some ready made example of google assistant notification, I'm a tech guy I have already developed app with dialogflow(donot support notification yet), I have both google home and mobile assistant, just want to see google action notification in action.
Asked
Active
Viewed 724 times
0
-
You can find information https://developers.google.com/actions/assistant/updates There are some step by step tutorials to enable different type of notifications. If you read under 'Push notifications' you can see one example there and if you follow it you can see it in action for yourself. – Amanda Cavallaro Jan 17 '18 at 15:31
-
I need step by step guide or running example – Inzamam Malik Mar 19 '18 at 17:44
1 Answers
1
There's this very detailed guide by Google with ready made code that you can easily adapt to your needs.
It offers code for Dialogflow as well as for the plain ActionsSDK.
Basically the steps are:
- Ask for permission
- React to it in your fulfillment code (confirming the user's decision)
- Notifying Google's backend when it should send a notification to the user (you need a JSON web token). This last step has to be done on some backend which knows about when to send notifications
Those steps are outlined in more detail on the linked site and there's also described how to obtain the token.

Wolfram Rittmeyer
- 2,402
- 1
- 18
- 21
-
Hi @Wolfram Rittmeyer in my case completed all the steps but i got error on sending notification Error Cannot read property 'access_token' of undefined – Aravindhan Gs Mar 22 '19 at 05:40
-
1As this exception says, some object has not be defined (which is even worse than it being null). Check if all objects have been set up correctly. – Wolfram Rittmeyer Mar 22 '19 at 09:54
-
i'm Getting error : URL is not a constructor in jwtClient.authorize((err, tokens)) – Aravindhan Gs Mar 27 '19 at 06:16
-
1Have a look exactly at your code. Must be something wrong when initializing JWT. The message sounds like you did the constructing wrong (the line above authorize). – Wolfram Rittmeyer Mar 28 '19 at 08:17
-
here is my full code https://stackoverflow.com/questions/55371048/access-token-undefined – Aravindhan Gs Mar 28 '19 at 08:59