Stock download manager notification

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Stock download manager notification

Post by MURTUMA » 16 Apr 2014 10:03

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?

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Stock download manager notification

Post by colabi » 16 Apr 2014 11:19

Try this:
contains(notification_text, "Download complete")

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Stock download manager notification

Post by MURTUMA » 17 Apr 2014 14:57

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.

colabi
Posts: 134
Joined: 06 Jan 2013 22:33

Re: Stock download manager notification

Post by colabi » 17 Apr 2014 17:09

This work for me:
2014-04-17-20-03-43.jpg
2014-04-17-20-03-43.jpg (225.67 KiB) Viewed 9185 times
ICS, Default browser

Post Reply