cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

The beforeload: 'get' breaks the mailtos on Android and Ios

Open edbusquets opened this issue 5 years ago • 1 comments

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

edbusquets avatar Jul 01 '20 10:07 edbusquets

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.

cravennathan avatar Jun 10 '21 15:06 cravennathan