2 Replies Latest reply on May 14, 2018 8:57 AM by cnSam

    cordova.InAppBrowser.open Not Working in Android After Build

    cnSam Level 1

      I have the following links in a PhoneGap app:

       

      <a href="#" onclick="ref1 = cordova.InAppBrowser.open('tel:+1-314-843-3663', '_system', 'location=yes');" class="link"><img src="lib/framework7/img/i-form-tel-material.svg" title="Call CN Video" /></a>

      <a href="#" onclick="ref2 = cordova.InAppBrowser.open('https://www.facebook.com/CNVideo/', '_blank', 'location=yes');" class="link"><img src="img/facebook_logo.jpg" title="CN Video on Facebook" /></a>

      <a href="#" onclick="ref3 = cordova.InAppBrowser.open('https://www.linkedin.com/in/SamanthaNaes/', '_blank', 'location=yes');" class="link"><img src="img/linkedin_logo.jpg" title="CN Video on LinkedIn" /></a>

      <a href="#" onclick="ref4 = cordova.InAppBrowser.open('mailto:sam.naes@cn-video.com', '_system', 'location=yes');" class="link"><img src="lib/framework7/img/i-form-email-material.svg" title="Email CN Video" /></a>

       

      Everything works fine when running PhoneGap Desktop app on an Android phone.  But, when I build the app and install it on an Android, the links don't work.  Nothing happens.

       

      Here is my config.xml settings.

       

      <access origin="*" />

      <access origin="mailto:*" launch-external="true" />

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

      <allow-intent href="*" />

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

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

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

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

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

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

      <allow-navigation href="*" />

      <allow-navigation href="http://cn-video.com/*" />

      <allow-intent href="http://cn-video.com/*" />

      <access origin="http://cn-video.com" />

          <platform name="android">

              <preference name="android-minSdkVersion" value="14" />

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

          </platform>

          <platform name="ios">

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

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

              <preference name="BackupWebStorage" value="none" />

          </platform>

          <preference name="DisallowOverscroll" value="true" />

          <plugin name="cordova-plugin-whitelist" spec="~1.2.0" />

          <plugin name="cordova-plugin-console" spec="~1.0.1" />

          <plugin name="cordova-plugin-statusbar" spec="~1.0.1" />

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

       

      I've been searching through this forum and in Google searches.  I've tried a lot of different suggestions.  Nothing seems to change the behavior.

       

      Has anyone encountered this?  Can you offer some suggestions?

      Thanks.