Is there a way to check if wifi or 3g are enabled

Hi

I need to find a way to check if wifi / 3g are enabled. I don’t need to check if they are connected to a network, just that they have not been disabled (like in fight mode)

My app relies heavily on adverts and I would like to be able to detect if a user is using fight mode to disable them. I dont mind if a user is out of range of a wifi / 3g signal, because at least they tried. But if a user tried to actively block my ad’s by disabling all data connections then, I have a problem.

Application.NetworkReachability checks if it is connected to a network which is not suitable for this situation.

So I need to find a way to know if the wifi / 3g adapter is active only, not that it has connected to a network.

Any Ideas?

Thanks

If it’s not connected to a network, then it’s not connected to a network, and whether wifi/3G are enabled is irrelevant. As for blocking ads, you just have to deal with it like everyone else. As an iPod touch user, I rarely have wifi enabled unless I’m actively using internet stuff, because having wifi on drains the battery faster. If you’re trying to sabotage your app somehow in certain conditions, be aware that Apple would never approve it.

–Eric

Its absolutely relevant to me, its the difference between being willing to participate and not being able to (wireless adapters enabled but unable to connect to network) and flat out refusing to participate (manually disabled data connections).

Sabotage my app? No. the limitation would be in the products description, users will know the requirements.

I know there will always be people who want to get something for nothing, does that mean I should just roll over? of course it doesn’t.

AFAIK there isn’t a way to know if Airplane mode is enabled
http://stackoverflow.com/questions/19550159/can-an-app-request-airplane-mode-to-be-turned-on-then-detect-the-user-has-done-s

1 Like

Thanks for the info.