cordova-plugin-inappbrowser
cordova-plugin-inappbrowser copied to clipboard
The beforeload: 'get' breaks the mailtos on Android and Ios
Bug Report
Problem
The option beforeLoad = get in the creation of the inAppBrowser makes it impossible to open mailtos.
What is expected to happen?
Open the mailto
What does actually happen?
Nothing, fails and doesnt open the mailto.
Information
Command or Code
I have created a clean application with ionic where the error can be reproduced. https://github.com/edbusquets/test-mailto-in-app-browser
You can see the difference between the options. And if you first open an inAppBrowser with beforeLoad = get and then one without beforeLoad this second won't work either.
public openWithCordovaBrowserBlank(url: string) {
let target = '_blank';
this.iabs.create(url, target, {
location: 'no',
hidenavigationbuttons: 'yes',
closebuttoncaption: 'Cancelar',
beforeload: 'get'
});
}
Environment, Platform, Device
Android and Ios
Version information
Checklist
- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
I'm having a similar issue, it seems like for some reason http:// is randomly being prepended to the mailto: link and this is causing the failure.