Page 1 of 1

Speech output for notification

Posted: 19 Mar 2019 16:54
by Vicdilou
Hi,
I make a Flow who say the sms but I want to do the same for notification of messenger.
Do you know how to do that ?
Thanks.

Re: Speech output for notification

Posted: 20 Mar 2019 00:23
by ariloc
Just replace the trigger with Notification on Statusbar Displayed to detect notifications from Messenger and change variables you use as you need with the ones detailed in the trigger help (you can access it going to the ? icon when editing it), most probably notification_text or title. You might also need to parse the data from the variable you choose, so you may want to use action Script and look at the documentation to see how you can get the data you want from the variables and also looking at the log or using Debug Dialog condition to develop your code and see what values you get.

Re: Speech output for notification

Posted: 21 Mar 2019 14:54
by Vicdilou
The trigger works but the voice said "null" everytime, I try "title" and "notification_text"

Re: Speech output for notification

Posted: 21 Mar 2019 14:55
by Vicdilou
ariloc wrote:You might also need to parse the data from the variable you choose, so you may want to use action Script and look at the documentation to see how you can get the data you want from the variables and also looking at the log or using Debug Dialog condition to develop your code and see what values you get.
And sorry but I didn't understand

Re: Speech output for notification

Posted: 21 Mar 2019 14:57
by ariloc
Have you tried with other variables named in the help? Also remember to use the debug dialog condition I mentioned to see which variables have content and the one you need, just connect that condition in between the trigger and the action.

Re: Speech output for notification

Posted: 21 Mar 2019 19:25
by Vicdilou
I don't know why but "notification_text" work now !
Thank you for the debug dialog, it's really useful