Allow multiple View Web URL intents

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
Bluscre
Posts: 145
Joined: 31 Aug 2017 13:58
Location: Germany
Contact:

Allow multiple View Web URL intents

Post by Bluscre » 07 Sep 2017 18:29

Wouldn't it be awesome if every "View Web URL Intent Recieved" trigger would have it's own entry in the "open with" list based on the triggers name?

Also filtering the data_string directly against text/blob/regex would be neat if you're already working on it :)

Aaand one more thing, custom icons per trigger (don't know if that one's possible) the others are for sure ^~^
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Allow multiple View Web URL intents

Post by Desmanto » 08 Sep 2017 01:31

As I understand, you want new icon with each Web URL intent receiver for every trigger? So you can choose the correct one for each flow you want?

Probably very hard to be implemented. This requires automagic to register new intent receiver for every new flow which use this trigger. It will spam too many choices which I believe most users don't want it. The better way is to split the usage per URL is to use parallel expression, which I have used since the first week of migration from tasker.

View Web URL, Single Intent received, Multiple Intent received can be paired with input dialog. This will allow you to add as many choices as you want. It works just like autoshare which also only has one receiver (3 actually, but only one is useful) but you can choose the commands afterward. Except that Automagic can do it by itself, no need additional plugin. :)

From input dialog, use as many expression as needed to check the choice, each with its own expression. It works just like the Parallel vs Series thread I have shared before.

For custom icon, It is nice to see if we can put icon in the input dialog too. But don't know if it is possible.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Bluscre
Posts: 145
Joined: 31 Aug 2017 13:58
Location: Germany
Contact:

Re: Allow multiple View Web URL intents

Post by Bluscre » 08 Sep 2017 04:49

Desmanto wrote:This requires automagic to register new intent receiver for every new flow which use this trigger. It will spam too many choices which I believe most users don't want it.
Can't it add/remove them dynamically? OGYoutube for example does that.
Desmanto wrote:The better way is to split the usage per URL is to use parallel expression, which I have used since the first week of migration from tasker.
I already do this since i first utilized URL intents.
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Allow multiple View Web URL intents

Post by Desmanto » 08 Sep 2017 05:11

Bluscre wrote: Can't it add/remove them dynamically? OGYoutube for example does that.
Maybe it creates a dynamic intent receiver and reinstall the receiver when we change the setting. Need to wait for Martin. If this is possible, then I would like the Intent Received and Multiple Intent Received to have this feature as well. :) Since all three share the same feature.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Bluscre
Posts: 145
Joined: 31 Aug 2017 13:58
Location: Germany
Contact:

Re: Allow multiple View Web URL intents

Post by Bluscre » 08 Sep 2017 05:13

Desmanto wrote:
Bluscre wrote: Can't it add/remove them dynamically? OGYoutube for example does that.
Maybe it creates a dynamic intent receiver and reinstall the receiver when we change the setting. Need to wait for Martin. If this is possible, then I would like the Intent Received and Multiple Intent Received to have this feature as well. :) Since all three share the same feature.
Yep, i have the slight fear that OGYoutube cheats by just changing it's own components :/
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Allow multiple View Web URL intents

Post by Martin » 09 Sep 2017 12:14

Not sure how this could be done since Automagic has to statically declare the intent receivers of an activity in the manifest. Multiple components that are enabled/disabled on demand could work but somehow sounds like it could cause trouble on some devices.
Does OGYoutube provide a way to specify a user defined icon or just a few different ones defined by OGYoutube itself?

Regards,
Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Allow multiple View Web URL intents

Post by Desmanto » 09 Sep 2017 16:22

Maybe they reserved several intent receivers, let say 10 and have them disabled by default. When the user enable 3 share, then 3 of them enabled and mapped to each of the choice.

AFAIK, there are xposed app such as custom share, complete action plus which can disable the intent receivers. But they can't add it, so probably to reserved the intent receiver is the only way.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Allow multiple View Web URL intents

Post by Martin » 09 Sep 2017 19:38

Yes, a few disabled components is the only way with a regular non-rooted Android that could work to my knowledge (maybe generating APKs dynamically on the device could also work but this seems way too complicated for such a small feature).

Locked