4 Replies Latest reply on Dec 5, 2016 6:40 AM by zaida72196902

    Why my PhoneGap InAppBrowser not opening external link in App but gets redirected into chrome.

    zaida72196902

      Hello,

      I am trying to view my website inside phonegap with no location bar, but everytime it keeps on opening in chrome.

      I am using PhoneGap Build:

       

      index.html

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

        <head>

        <script src="cordova.js"></script>

        <!--<script scr="phonegap.js"> </script>-->

        <script src="js/jquery-3.1.1.min.js"> </script>

        <script src="js/app.js"> </script>

       

        </head>

        <body>

        </body>

      </html>

       

      app.js

      document.addEventListener("deviceready", onDeviceReady, false);

      function onDeviceReady() {

      navigator.app.loadUrl('http://www.myqourse.com/', { openExternal:false });

      }

       

      config.xml

      <?xml version="1.0" encoding="UTF-8" ?>

      <widget xmlns = "http://www.w3.org/ns/widgets"

        xmlns:gap = "http://phonegap.com/ns/1.0"

        id = "com.zaidabuqamar.myqourse" -->Personal Info was removed

        versionCode = "1"

        version = "1.0.0">

        <name>MyQourse</name>

        <description>Mobile App </description>

        <author href="S" email="" ></author> -->Personal Info was removed

        <platform name="ios"/>

        <platform name="android"/>

        <platform name="winphone"/>

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

        <!--General preferences-->

        <preference name="orientation" value="portrait"/>

        <preference name="fullscreen" value="false"/>

        <preference name="webviewbounce" value="false"/>

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

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

        <!--access, permissions and icons-->

        <icon src="icon.png" />

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

        <!--plugins-->

        <plugin name="cordova-plugin-device" spec="~1.1.3" />         

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

        <plugin name="cordova-plugin-inappbrowser" spec="~1.5.0" />        

        <access origin="*" subdomains="true"/>

       

        <!--ios preferences-->

        <preference name="target-device" value="universal"/>

        <preference name="deployment-target" value="7.0"/>

        <preference name="exit-on-suspend" value="false"/>

        <preference name="detect-data-types" value="true"/>

        <preference name="prerendered-icon" value="false"/>

        <preference name="StatusBarOverlayWebView" value="false"/>

        <preference name="ios-statusbarstyle" value="default"/>

        <preference name="StatusBarStyle" value="default"/>

        <!--android preferences-->

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

        <preference name="android-installLocation" value="auto"/>

       

        <!--simple icon-->

         <icon src="icon.png" />

      </widget>