I'm working in a windows 7 environment using Cordova 6.4.0 to assemble a Android 6.1.0 app, and links in the app to send a call or email are not working. The app builds on my desktop, and the links work in Chrome. I am testing by loading the app using ADB 1.0.36 to my Galaxy S7.
I have the whitelist and inappbrowser plugins installed, and added the and in my config.xml as you see below. Slight changes were done to mask company information.
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.test.app" version="3.0" android-versionCode="3" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>AppName</name>
<description>
App Description
</description>
<author email="email@company.com" href="https://www.example.com">
Author Name
</author>
<content src="index.html" />
<access launch-external="yes" origin="tel:*" />
<access launch-external="yes" origin="mailto:*" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="android-minSdkVersion" value="14"/>
<platform name="android">
<icon density="ldpi" src="assets/icons/android/ldpi.png" />
<icon density="mdpi" src="assets/icons/android/mdpi.png" />
<icon density="hdpi" src="assets/icons/android/hdpi.png" />
<icon density="xhdpi" src="assets/icons/android/xhdpi.png" />
<icon density="xxhdpi" src="assets/icons/android/xxhdpi.png" />
<icon density="xxxhdpi" src="assets/icons/android/xxxhdpi.png" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="~1.3.0" />
<engine name="android" spec="~6.1.0" />
</widget>
Here's an example of the links that are not working.
<div class="cuboxes">
<h2>Group list</h2>
<h3>( <span>800.555.5555</span> )</h3>
<a href="tel:1-800-555-5555" class="cu green hidetablet">Call Us</a>
<a href="mailto:mailto:person@example.com?Subject=Email From the App" class="cu green email">E-Mail Us</a>
</div>
I've tried changing the phone number format (removing the "-" or adding a "+" at the start of the number), and a number of other configuration changes. This app was built from scratch, and the web pages were added from the previous version of the app. The old version does not build as it does not use gradle.
Any help would be appreciated.