iOS Question Detect vpn usage

tufanv

Expert
Licensed User
Longtime User
Hello

is it possible to detect if the phone is using a vpn service ? Because VPN services are successfuly blocking admob ads so I want to detect if the user using vpn. ?

TY
 

sorex

Expert
Licensed User
Longtime User
You can handle the FailedToReceiveAd event. There will probably be a connectivity error.

but it doesn't mean they block it on purpose.

so it's kind of tricky to implement some kind of blocking of app usage when you can't pull in an ad.

sometimes admob seems to have an overload or not return any ads and that's not the user's fault either.

vpn's use another gateway than the 3G/Wifi one unless your turn it off. question would be to what will you verify the current gateway?
 
Upvote 0

mrred128

Active Member
Licensed User
Longtime User
A technique you might want to use is to count how many times the app has been run without having any adds run and resetting the count when a successful add is launched. You can use a watermark of x to ensure no false triggers. This all assumes network connectivity of some sort.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…