Page 1 of 2

Different URL View triggers?

Posted: 22 Oct 2019 01:38
by Bluscre
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"?

Re: Different URL View triggers?

Posted: 25 Oct 2019 19:26
by Martin
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

Re: Different URL View triggers?

Posted: 25 Oct 2019 21:15
by Bluscre
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

Re: Different URL View triggers?

Posted: 25 Oct 2019 21:17
by Bluscre
Image

Re: Different URL View triggers?

Posted: 26 Oct 2019 10:55
by anuraag
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.

Re: Different URL View triggers?

Posted: 26 Oct 2019 15:25
by Bluscre
So youtube has put all these third party apps in the list???

Re: Different URL View triggers?

Posted: 26 Oct 2019 15:41
by anuraag
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.

Re: Different URL View triggers?

Posted: 31 Oct 2019 18:34
by Bluscre
So automagic can easily add itself to intent?

Re: Different URL View triggers?

Posted: 31 Oct 2019 20:41
by Martin
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

Re: Different URL View triggers?

Posted: 31 Oct 2019 21:12
by Martin
The next update should be able to handle the intents using the regular trigger View Web URL Intent Received.

Regards,
Martin