Ionic 3 - redirect on Mobile App from inAppBrowser


#1

Hello everyone, I have to integrate a mobile payment gateway into my ionic 3 app, the problem is that when the gateway finish the payment it requires me a return url to redirect the browser.

What return url should I set? because I want to go back on my mobile app. And also it would be great if I can go back on a specific tab of my app.


#2

I succeeded to achieve this by using browser.on(‘loadstart’) , and then check if the event.url includes parts of my redirect url, and if it has, I call browser.close() … Is this the best approach?