90
Views
2
Comments
Solved
[InAppBrowser Plugin] How to close the IAB, and return to the app
Question
Forge component by OutSystems R&D
11
Published on 09 Jan 2020

I'm using the In-App Browser (IAB) to open an OAuth Login URI. When it comes back, it goes to a URI on the OutSystems server, where I can process/log the response etc.

After all that, how do I close the IAB, and go to a specific screen?

I tried redirecting to a deeplink in the form of 

<app-identifier>://<module>/<screen>

but the IAB returns with an error "Webpage not available" ... "net::ERR_UNKNOWN_URL_SCHEME".


mvp_badge
MVP
Rank: #114
Solution

HI Jonathan,

I think you can use InAppBorwser Events component with InAppBrowser to get handle various event of your in-app browser.

Check in OnLoadStart event handler if any specific URL is found run your logic or redirect to other screen. There are other events also which you can use based on your need.

Rank: #755

thanks! I found that component as well, and I think that's the way to go.