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

randomstrings

Supreme Member
Joined
Feb 3, 2021
Messages
1,325
Reaction score
854
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?
 
Android opens the link in the default browser of the user.

What are you using to build the app? Kotlin may have something
 
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
 
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.
 
Back
Top