Hi folks,
Below code is used to open InAppBrowser and on loadstart event, url change is detected and some functionality is performed. It suddenly stopped working, any directions?
const browser = this.iab.create(orderResult.links.paymentUrl, "_self", { location: 'no' });
browser.on('loadstart').subscribe(
(payment_result) => {
if (payment_result.url.startsWith(ServiceConfig.baseUrl)) {
console.log('order id: ', orderResult.orderId);
this.utilityService.openPage(OrderDetail, { id: orderResult.orderId });
browser.close();
}
}, (error) => {
console.log(error);
}
);