No you will get error once you started to use this method in other device in some other location. Dictionary method or the method suggest by @iamwsumit or @dora_paz only will work in all device and in all location. I am un marking the solution.
@devcafeofficial , @Yashsehgal022 hasn’t asked how to detect vpn in app. Could you stop posting off-topic replies?
The best answer is already provided by dora with dictionary block
So you mean, This is bad or I cant suggest anything if already someone resolve that issue?
or is it a sin if I’m showing different way for doing the same thing?