I have an application which uses connection to server via Wifi. When starting the application, I check if Wifi is logged in; If it is not, then I call Safari to enter the Wifi credentials and connect to it.
After successfully logging in with Wifi, I would like to go back to the application, automatically (automatically means in the same fashion Safari appeared from the application). Is it possible?
No, once you yield your foreground status, you can’t suddenly claim it back. However, this type of captive network logon is built into iOS 5 onwards (it will detect captive networks, and pop up a modal Safari sheet for logging in), so you needn’t really bother with your own method (unless it’s a special Wifi setup).