Problem with link mailto: and sms:

Hi there I’m using ionic2, try to open sms and mail app with mailto: and sms: but got error net::ERR_UNKNOWN_URL_SCHEME in android, but running well in ios

I already add allow-intent, access-origin and allow-navigation. This is in my config.xml

<access origin="*" />
<access origin="mailto:*" launch-external="true" />
<access origin="tel:*" launch-external="true" />
<access origin="sms:*" launch-external="true" />
<access origin="geo:*" launch-external="true" />
<access origin="maps:*" launch-external="true" />

<allow-intent href="http://*/*" launch-external="true" />
<allow-intent href="https://*/*" launch-external="true" />
<allow-intent href="tel:*" launch-external="true" />
<allow-intent href="sms:*" launch-external="true" />
<allow-intent href="mailto:*" launch-external="true" />
<allow-intent href="geo:*" launch-external="true" />

<allow-navigation href="sms:*" launch-external="true" />
<allow-navigation href="mailto:*" launch-external="true" />

This is my ionic info

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.9.0 
ios-sim version: 5.0.8 
OS: Mac OS X El Capitan
Node Version: v6.6.0
Xcode version: Xcode 8.0 Build version 8A218a

I call this in my code
window.location.href = '';

Thank you in advice

I’m experiencing the same issue on Ionic 1. Did you find the solution to solve this problem?

When you access the click event for mail,
Is it opening in Inappbrowser ? If so, then try to remove http: that is prefixed with this ‘maito’ .
Or did you see anything else on clicking that mail button in your app??