Inappbrowser scrolling working fine in android but its not working in iphone. Am i forgetting something to add in config xml to allow scrolling?
1 Like
Any updates on this issue?
I have used below code, it’s works for me
var options = {
location: ‘no’,
clearcache: ‘no’,
toolbar: ‘yes’
};
$cordovaInAppBrowser.open(url, '_blank', options)
.then(function (event) {
// success
})
.catch(function (event) {
// error
});
The code I am using now for opening and closing the inappbrowser is also working with scroll:
import { Platform } from 'ionic-angular';
declare var window: any;
declare var cordova: any;
ref: any;
platform.ready().then(() => {
if (cordova && cordova.InAppBrowser) {
window.open = cordova.InAppBrowser.open;
}
});
if (cordova && cordova.InAppBrowser) {
this.ref = cordova.InAppBrowser.open(paymentUrl, '_blank');
}
this.ref.close();