0 Replies Latest reply on Aug 18, 2016 12:05 PM by robertn8975276

    allow-navigation href="tel:*" fails for Android with PhoneGap Build CLI 6.3.0

    robertn8975276

      We have a JQuery Mobile app we build with PhoneGap Build CLI 6.3.0. We started having an issue with our IOS 9 directly start dialing when telephone link clicked. To fix we added the <allow-navigation href="tel:*"\> to the config.xml.   This fixed our IOS issue but now the Android will perform a "back button" when tapping the telephone link.   If we add the <allow-intent href="tel:*"/> to the <platform name="android"> section and the <allow-navigation href="tel:*"\> to the <platform name="ios"> then the telephone links do nothing at all in both platforms.  It is as if PhoneGap Build does not take the allow-intent from the platform section.   I need a way in which we can do a build once which will allow the telephone link to work with both platforms.

       

      works for IOS only...

        <preference name="phonegap-version" value="cli-6.3.0" />

        <icon src="icon.png"/>

        <icon src="www/res/icon/blackberry/icon-80.png" platform="blackberry"/>

        <icon src="www/res/icon/blackberry/icon-80.png" platform="blackberry" state="hover"/>

        <icon src="www/res/icon/webos/icon-64.png" platform="webos"/>

        <icon src="www/res/icon/windows-phone/icon-48.png" platform="winphone"/>

        <icon src="www/res/icon/windows-phone/icon-173-tile.png" platform="winphone" role="background"/>

        <splash src="www/res/screen/blackberry/screen-225.png" platform="blackberry"/>

        <splash src="www/res/screen/windows-phone/screen-portrait.jpg" platform="winphone"/>

        <access origin="*" />

        <access origin="tel:*" launch-external="yes" />

        <access origin="geo:*" launch-external="yes" />

        <allow-intent href="http://*/*"/>

        <allow-intent href="https://*/*"/>

        <allow-intent href="sms:*"/>

        <allow-intent href="mailto:*"/>

        <allow-intent href="geo:*"/>

        <allow-intent href="tel:*"/>

        <plugin name="cordova-plugin-whitelist" source="npm" />

        <allow-navigation href="tel:*"/>

       

      works for Android only...

      <preference name="phonegap-version" value="cli-6.3.0" />

        <icon src="icon.png"/>

        <icon src="www/res/icon/blackberry/icon-80.png" platform="blackberry"/>

        <icon src="www/res/icon/blackberry/icon-80.png" platform="blackberry" state="hover"/>

        <icon src="www/res/icon/webos/icon-64.png" platform="webos"/>

        <icon src="www/res/icon/windows-phone/icon-48.png" platform="winphone"/>

        <icon src="www/res/icon/windows-phone/icon-173-tile.png" platform="winphone" role="background"/>

        <splash src="www/res/screen/blackberry/screen-225.png" platform="blackberry"/>

        <splash src="www/res/screen/windows-phone/screen-portrait.jpg" platform="winphone"/>

        <access origin="*" />

        <access origin="tel:*" launch-external="yes" />

        <access origin="geo:*" launch-external="yes" />

        <allow-intent href="http://*/*"/>

        <allow-intent href="https://*/*"/>

        <allow-intent href="sms:*"/>

        <allow-intent href="mailto:*"/>

        <allow-intent href="geo:*"/>

        <allow-intent href="tel:*"/>

        <plugin name="cordova-plugin-whitelist" source="npm" />

       

       

      works for neither...

        <preference name="phonegap-version" value="cli-6.3.0" />

        <icon src="icon.png"/>

        <icon src="www/res/icon/blackberry/icon-80.png" platform="blackberry"/>

        <icon src="www/res/icon/blackberry/icon-80.png" platform="blackberry" state="hover"/>

        <icon src="www/res/icon/webos/icon-64.png" platform="webos"/>

        <icon src="www/res/icon/windows-phone/icon-48.png" platform="winphone"/>

        <icon src="www/res/icon/windows-phone/icon-173-tile.png" platform="winphone" role="background"/>

        <splash src="www/res/screen/blackberry/screen-225.png" platform="blackberry"/>

        <splash src="www/res/screen/windows-phone/screen-portrait.jpg" platform="winphone"/>

        <access origin="*" />

        <access origin="tel:*" launch-external="yes" />

        <access origin="geo:*" launch-external="yes" />

        <allow-intent href="http://*/*"/>

        <allow-intent href="https://*/*"/>

        <allow-intent href="sms:*"/>

        <allow-intent href="mailto:*"/>

        <allow-intent href="geo:*"/>

        <plugin name="cordova-plugin-whitelist" source="npm" />

         

        <platform name="android">

              <allow-intent href="tel:*"/>

              <icon src="/res/icon/android/icon-36-ldpi.png" platform="android" qualifier="ldpi"/>

         <icon src="/res/icon/android/icon-50-mdpi.png" platform="android" qualifier="mdpi"/>

         <icon src="/res/icon/android/icon-72-hdpi.png" platform="android" qualifier="hdpi"/>

         <icon src="/res/icon/android/icon-100-xhdpi.png" platform="android" qualifier="xhdpi"/>

         <splash src="/res/screen/android/screen-ldpi-portrait.png" platform="android" qualifier="port-ldpi"/>

         <splash src="/res/screen/android/screen-mdpi-portrait.png" platform="android" qualifier="port-mdpi"/>

         <splash src="/res/screen/android/screen-hdpi-portrait.png" platform="android" qualifier="port-hdpi"/>

         <splash src="/res/screen/android/screen-xhdpi-portrait.png" platform="android" qualifier="port-xhdpi"/>

         <splash src="/res/screen/android/screen-xxhdpi-portrait.png" platform="android" qualifier="port-xxhdpi"  />

         <allow-intent href="market:*"/>

          </platform>

          <platform name="ios">

                <allow-navigation href="tel:*"/>

         <icon src="/res/icon/ios/icon-60.png" platform="ios" width="60" height="60"/>

         <icon src="/res/icon/ios/icon-72.png" platform="ios" width="72" height="72"/>

         <icon src="/res/icon/ios/icon-60-2x.png" platform="ios" width="120" height="120"/>

         <icon src="/res/icon/ios/icon-72-2x.png" platform="ios" width="144" height="144"/>

         <splash src="/res/screen/ios/screen-iphone-750x1334.png" platform="ios"  width="750" height="1334"  />

         <splash src="/res/screen/ios/screen-iphone-1242x2208.png" platform="ios" width="1242" height="2208" />

         <splash src="/res/screen/ios/screen-iphone-2208x1242.png" platform="ios" width="2208" height="1242"  />

         <splash src="/res/screen/ios/screen-iphone-portrait.png" platform="ios" width="320" height="480"/>

         <splash src="/res/screen/ios/screen-iphone-portrait-2x.png" platform="ios" width="640" height="960"/>

         <splash src="/res/screen/ios/screen-iphone-portrait-568h-2x.png" platform="ios" width="640" height="1136"/>

         <splash src="/res/screen/ios/screen-ipad-portrait.png" platform="ios" width="768" height="1024"/>

         <splash src="/res/screen/ios/screen-ipad-landscape.png" platform="ios" width="1024" height="768"/>

         <allow-intent href="itms:*"/>

         <allow-intent href="itms-apps:*"/>

        </platform>