Greetings, dear audience! Today we will learn how to cloach without any available tools, with one line of code. True, this magic will only work for Android devices, but this is already quite good, isn’t it?
The essence of our actions will be to use the Intent mechanism, built into the Android OS, which allows you to launch various applications by placing a specially generated link inside the HTML code of the page.
ATTENTION: Everything described below works ONLY for Android with a version less than 11! I haven’t found any options for older versions yet?♂️
We will launch the Chrome browser. And here’s how it will work:
- We post somewhere onwhite-page a special link with Intent
2. A user from Facebook clicks on an ad towhite
3. It is “knocked out” from the internal Facebook browser and the regular Chrome browser with black opens
….
N. Profit!
Now let’s look at the format of a special Intent link:

- The link should always begin with the «protocol» intent://. Approximately how you write http://
- Next comes the actual address of the site that we want to show to the user, in this case stackoverflow.com, this part ends by writing the word #Intent;
- The scheme is written here, either http or https, as you need
- At the end the package is indicated, for us it is always Chrome and the keyword end
And finally, a complete usage example:

We place a file with this code somewhere onhostingor in the constructor, we send ourselves a link in Facebook messenger. We follow the link and see how Google Chrome opens and stackoverflow.com is shown to us.
There are plenty of application options, but watch out for traffic losses!
And I remind you that the project is aliveonly with your prayers and donations, so click the linkand pour in plus ;-)
P.S. If you are a programmer and you are interested in reading about Intent, welcome.


Спасибо, Желтый! Как всегда качественные плюшки!
На здоровье ;-)
Подскажи как это тестить правильно? На двух андроидах которые у меня под рукой — это не работает ни в каких браузерах. А на трафике показывает нормальные результаты. Правда без использования iframe. Но затестить сам никак не могу.
тестить просто, берёте ссылку на ваш сайт, кидаете себе в мессенджер фб и из него пробуете переходить