Can i call different browser api in webview in Android app?

hexagonal

Junior Member
Joined
Apr 17, 2022
Messages
107
Reaction score
41
Android opens the link in the default browser of the user.

What are you using to build the app? Kotlin may have something
 

Thecodder

Jr. VIP
Jr. VIP
Joined
Aug 14, 2015
Messages
131
Reaction score
87
When using webview, its always going through chrome browser api, what I want is to call webview via brave browser api, my motivation is to make a ad free app version of "MY WEBSITE" for paid users. Does anybody knows?

Do it like this:
On webview set the default url like site.com?utm=app
Now in your website write a js code that get the url parameters, when you find utm parameter with value "app" set a cookie from js
Then check if the cookie exist before the ads js code, if it exists don't embed the code from ads(adsense or whatever you use), if not exist embed it.

Is the simplest way to do it but read the ads provider policy first and see if the ads display manipulation is forbidden or not.

L.E: this will work with the default webview, you will not need to search for other browser api's to implement the webview
 

randomstrings

Jr. VIP
Jr. VIP
Joined
Feb 3, 2021
Messages
584
Reaction score
394
Do it like this:
On webview set the default url like site.com?utm=app
Now in your website write a js code that get the url parameters, when you find utm parameter with value "app" set a cookie from js
Then check if the cookie exist before the ads js code, if it exists don't embed the code from ads(adsense or whatever you use), if not exist embed it.

Is the simplest way to do it but read the ads provider policy first and see if the ads display manipulation is forbidden or not.

L.E: this will work with the default webview, you will not need to search for other browser api's to implement the webview
Your LE is my whole questions, whatever said above I already knows.
 
Top