Hi,
I am trying to use the in app browser to login for Apple users. After the login i want to exit the inappbrowser. I used the in app browser event to exit the inappbrowser (see screenshot) but this did not work. What is the correct way to do this?
kind regards,Dave
Hello Dave,
If I understood your query, You are trying to make an authentication in an external source only for the IOS users. For that you are opening the inapp browser and performing the authentication there. Once it is done, you want the inapp browser to be closed automatically.
I suggest, if IOS user instead of opening the inapp browser directly, requesting to kindly navigate to an anonymous page where you should place the below block.
There in the property of the block you can give the options as:
1. URL: The URL to be openend in the inapp browser.
2. CloseURL: After you performed the authentication, if the URL changes, then give the partial content of the url as the close URL.
eg: your are opening the below url in the browser
'https://appleauthenticate.com', then after you performed the authentication url changed to
'https://appleauthentication.com/success' . Then if you have given the closeurl as 'success', the browser will be automatically closed.
Note: Do not give the close URL as the url or partial url of the initial url you were opening in the browser, because the browser will be closed immediately once you opened it.
Orelse, one you have opened the url in the browser, you have certain events of the browser as attached above. You can use the below in the script to close the browser.
Kindly mention, if you query was something else.
Thank you.