iOS/Android Wifi Connection App

Not sure if anyones come across this issue before, basically I want to create a corporate wifi app for people to be able to take site to site. The sites aren't confederated, and each have their own wifi password, but rather than give it out to everyone, I want to program them into an app where they turn up, and if the app see's a valid wifi access point, connects to it providing the OS the password, lets them use up to x amount of data, or once past business hours disconnects them again.

We want this to be intrusive on the phone rather than intrusive on the router so we can just add the client sites/work sites into the app master DB for the apps to talk to.

It will require a very heavy level of control over the phones network services, im just not sure if its at all possible to take over THAT much control.

Any ideas? Even if you have seen an app that already accomplishes this so i know its at least possible and I can just keep searching for the right APIs?

I don't think I have to say it but PLEASE don't store creds in your app, you don't even need to be root to extract and APK and extract/decompile to pull sensitive info out. If you really must store creds locally, look into using the Keychain for secure storage. (I know wireless passphrases are stored in plaintext in wpa_supplicant.conf but that's another story).

Thanks I'll look into that, the idea is that the info is only stored for the duration of use, never want the user to be able to see the password, the app will instead pull the info over https from a central server

Thanks I'll look into that, the idea is that the info is only stored for the duration of use, never want the user to be able to see the password, the app will instead pull the info over https from a central server

Click to expand...

A central server that's internet accessible? Just trying to get my head around how a central server can be accessed if they're not on wifi.