@Andrews' answer worked perfectly for me. Here is my full code for an Ionic 3 app using @ionic-native/themeable-browser:
let options: ThemeableBrowserOptions = {
statusbar: { color: '#1976d2ff' },
toolbar: { height: 44, color: '#1976d2ff' },
closeButton: { align: 'right', event: 'closed', wwwImage: '/assets/images/icons/close-empty.png', wwwImagePressed: '/assets/images/icons/close-outline.png', wwwImageDensity: 3 },
usewkwebview: 'yes',
disallowoverscroll: 'yes',
allowInlineMediaPlayback: 'yes',
mediaPlaybackRequiresUserAction: 'no'
},
browser: ThemeableBrowserObject = self.iab.create(url, '_blank', options);
if (this.platform.is('ios')) {
browser.on('loadstop').subscribe(() => {
browser.executeScript({ code: 'document.body.classList.add("cordova-ios");' });
});
}
This way I can style iOS in Cordova explicitly via body.cordova-ios
class inheritance