I am creating an app which needs to connect to a device that is running a WiFi hotspot. However, to make this more user-friendly, I would like to make the app connect to the hotspot on the user's behalf.
For example, when the app starts, the user presses "connect", and a spinner appears while the app connects to the network. The SSID and passphrase may not be saved already on the phone.
I would also like there to be a method that the user can press a "Disconnect" button to return to the previous network.
I would like this method to be as Cross-Platform as possible. Especially Android and iOS.
Many thanks in advance if you can shed any light on how I might achieve this!
(I could not find anything online with a suitable method of achieving this - it seemed there were no APIs).