Different URL View triggers?

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

Moderator: Martin

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

Different URL View triggers?

Post by Bluscre » 22 Oct 2019 01:38

Hello, i use the Web View Trigger alot but what triggers me (pun intended) is the fact that sometimes another kind of intent seems to be triggered instead of it

Example: Clicking a URL in a Youtube video description does not list Automagic as possible browser.

Is there any way i can catch those special "web view intents"?
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: Different URL View triggers?

Post by Martin » 25 Oct 2019 19:26

Hi,

It's unlikely that such events can be intercepted. The developer of an app decides if he wants to send the intent to a generic web browser (this one could be intercepted by Automagic) or if he targets a specific browser or even handles the click on the link completely within it's own app.

Regards,
Martin

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

Re: Different URL View triggers?

Post by Bluscre » 25 Oct 2019 21:15

Martin wrote:
25 Oct 2019 19:26
Hi,

It's unlikely that such events can be intercepted. The developer of an app decides if he wants to send the intent to a generic web browser (this one could be intercepted by Automagic) or if he targets a specific browser or even handles the click on the link completely within it's own app.

Regards,
Martin
How do apps like "Download Manager" catch it then? Because they appear in the list
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.

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

Re: Different URL View triggers?

Post by Bluscre » 25 Oct 2019 21:17

Image
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Different URL View triggers?

Post by anuraag » 26 Oct 2019 10:55

As Martin said its app developer decides which link to send to browser. Youtube app will open youtube links by default in app and send other links to browsers. In above screenshot you have clicked a non youtube link.

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

Re: Different URL View triggers?

Post by Bluscre » 26 Oct 2019 15:25

So youtube has put all these third party apps in the list???
Unofficial AutoMagic Telegram Group: https://t.me/automagicforandroid
Check out my other flows here: https://github.com/Bluscream/AutoMagicFlows or here.

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Different URL View triggers?

Post by anuraag » 26 Oct 2019 15:41

Bluscre wrote:
26 Oct 2019 15:25
So youtube has put all these third party apps in the list???
No. Youtube only sends http intent. Android os resolves that intent and shows list of apps which can open it.

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

Re: Different URL View triggers?

Post by Bluscre » 31 Oct 2019 18:34

So automagic can easily add itself to intent?
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: Different URL View triggers?

Post by Martin » 31 Oct 2019 20:41

In this case it should be possible to register Automagic to handle the intent. I'll investigate what intent is sent and will see if this can be done with the regular View Web URL Intent Received or if this requires another trigger.

Regards,
Martin

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

Re: Different URL View triggers?

Post by Martin » 31 Oct 2019 21:12

The next update should be able to handle the intents using the regular trigger View Web URL Intent Received.

Regards,
Martin

Locked