Detect adblocker in sketchware | How to block adblocker in sketchware


What are adblockers?

 AdBlockers are the thing, which are most hated by app developers. Adblockers lead to 0 revenue from that device. And if all our app users start using adblockers than how we can sustain in this competeting world. so I researched on how to block adblockers and I found some libraries on github, but these were big libraries and I don't think any developer will use them in project. 

So what is the solution to it? 

Instead of using any third party library, we'll use the key feature of adblockers i.e. blocking ads provider sites....

So let's start building a project in our sketchware.


Build a new project.

Open sketchware app then build a new project, name it anything you like. 


Project's view section

In the view area, I added a text and a button. 

The text will be used for showing if ads are enabled or disabled. And the button will be used to reload the status of adblocker. 




Project's components area

Go to project's component section and add a request network component and name it anything you like, In my case I named it "rn".




Events area

Go to OnCreate and add the blocks as shown in picture. 

First add If block to check the connectivity. Then if the network is connected then put a request network block and set request method to GET and request url to https://dash.applovin.com 



OnButton Click

In Button Click event, add the same logic as we used in OnCreate event.


Request Network's Component

Add the both request network components. One for Response and second for Error Response.



OnResponse Request Network 

In this field add your logic to perform when adblocker is not enabled. 


OnErrorResponse 

Here add response when adblocker are turned on. 


So our project is completed now you can build the project and see if it working.

How to check 

Install any adblocker app in your phone and then check if it works or not. 

Logic used

We have used the logic that adblocker also block main url of ad serving website. And we used to check connection of applovin and if adblocker is enabled then you will get the error response and then you can force the user to turn off adblocker.

Does it work for other sites or only applovin?

It works for all sites. There is no need of having applovin sdk or applovin account for performing the task. If you're using admob, meta ads or anything else, You may go with the same process. 


You can join our telegram channel to get the project. 

Link : https://t.me/sk_comm

Thank you for reading this blog post.

Previous Post Next Post