Page 1 of 1

Stock download manager notification

Posted: 16 Apr 2014 10:03
by MURTUMA
I have this flow which plays a sound when a browser finishes it's downloads. I've been able to implement this to every browser which I use except the ones that uses stock download manager.

The problem is my non-existent scripting skills. I use expression condition with script:contains(text, "Download complete.")

That doesn't work, as it always return false. The notification text variable contains "filename.xyz Download complete." Do I have to add a wild card to filename's place? If so, how do I do that?

Re: Stock download manager notification

Posted: 16 Apr 2014 11:19
by colabi
Try this:
contains(notification_text, "Download complete")

Re: Stock download manager notification

Posted: 17 Apr 2014 14:57
by MURTUMA
That didn't work.

Forgot to say that you can test this by downloading something using stock browser. Also at least Chrome and Lightning Browser uses stock download manager for downloading stuff.

Re: Stock download manager notification

Posted: 17 Apr 2014 17:09
by colabi
This work for me:
2014-04-17-20-03-43.jpg
2014-04-17-20-03-43.jpg (225.67 KiB) Viewed 9190 times
ICS, Default browser