How can we achieve the objective of having a button in an iOS native app that, when clicked, opens a URL (webpage) in a native browser like Safari, and then uses JavaScript in the opened webpage to close that browser window and reveal the app again?
While opening the URL from the native app is easily done (How to launch safari and open URL from iOS app?), the challenge lies in closing the resulting browser window. Is there a solution for this?