2 Replies Latest reply on Feb 17, 2017 8:30 AM by mohunu96546120

    Internet link don't work after PhoneGap build Convertion

    mohunu96546120 Level 1

      Hi, after converting my HTML5 file to apk, the internet links does not happen to work anymore.  They were doing fine in HTML5 file.  My config.xml is as follows:


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

      <!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->

      <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="com.yolasite.chemtutor" version="1.0.0">



              This is a Storyline HTML5 project.


        <author href="https://virtualcampus.mieedu.ac.mu/" email="chemmru2@gmail.com">

              Learning Factory Team



              Enable individual API permissions here.

              The "device" permission is required for the 'deviceready' event.


        <plugin name="cordova-plugin-whitelist" spec="1" />

        <!--plugin whitelist-->

        <plugin name="cordova-plugin-inappbrowser" spec="1.6.1" />

        <!--plugin inapp browser-->

        <access name="origin" value="*" />

        <allow-navigation name="href" value="*" />

        <!-- allow navigation -->

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

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

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

        <!-- allow access to internet -->

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

        <!-- Customize your app and platform with the preference element. -->

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

        <!-- all: current version of PhoneGap -->

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

        <!-- all: default means both landscape and portrait are enabled -->

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

        <!-- all: possible values handset, tablet, or universal -->

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

        <!-- all: hides the status bar at the top of the screen -->

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

        <!-- ios: control whether the screen 'bounces' when scrolled beyond the top -->

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

        <!-- ios: if icon is prerendered, iOS will not apply it's gloss to the app's icon on the user's home screen -->

        <preference name="stay-in-webview" value="false" />

        <!-- ios: external links should open in the default browser, 'true' would use the webview the app lives in -->

        <preference name="ios-statusbarstyle" value="black-opaque" />

        <!-- ios: black-translucent will appear black because the PhoneGap webview doesn't go beneath the status bar -->

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

        <!-- ios: controls whether data types (such as phone no. and dates) are automatically turned into links by the system -->

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

        <!-- ios: if set to true, app will terminate when home button is pressed -->

        <preference name="show-splash-screen-spinner" value="true" />

        <!-- ios: if set to false, the spinner won't appear on the splash screen during app loading -->

        <preference name="auto-hide-splash-screen" value="true" />

        <!-- ios: if set to false, the splash screen must be hidden using a JavaScript API -->

        <preference name="disable-cursor" value="false" />

        <!-- blackberry: prevents a mouse-icon/cursor from being displayed on the app -->

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

        <!-- android: MIN SDK version supported on the target device. MAX version is blank by default. -->

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

        <!-- android: app install location. 'auto' will choose. 'internalOnly' is device memory. 'preferExternal' is SDCard. -->

        <!-- Plugins can also be added here. -->


              <gap:plugin name="Example" />

              A list of available plugins are available at https://build.phonegap.com/docs/plugins


        <!-- Define app icon for each platform. -->

        <icon src="icon.png" />

        <icon src="icon-48-mdpi.png" gap:platform="android" gap:density="mdpi" />

        <icon src="icon-72-hdpi.png" gap:platform="android" gap:density="hdpi" />

        <icon src="icon-96-xhdpi.png" gap:platform="android" gap:density="xhdpi" />



      My PhoneGap Build log is as follows:-

      Build Date: 2017-02-17 04:53:16 +0000




      Fetching plugin "cordova-plugin-whitelist@1" via npm

      Installing "cordova-plugin-whitelist" at "1.3.1" for android


        This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

      Fetching plugin "cordova-plugin-inappbrowser@1.6.1" via npm

      Installing "cordova-plugin-inappbrowser" at "1.6.1" for android




      Subproject Path: CordovaLib

      Configuration on demand is an incubating feature.

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preDebugBuild UP-TO-DATE


      :CordovaLib:preBuild UP-TO-DATE

      :CordovaLib:preDebugBuild UP-TO-DATE




      :CordovaLib:compileDebugNdk UP-TO-DATE


      :CordovaLib:copyDebugLint UP-TO-DATE






      :CordovaLib:packageDebugRenderscript UP-TO-DATE











      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processDebugJavaRes UP-TO-DATE
















      :processDebugResourcesWarning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.






      :compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :compileDebugNdk UP-TO-DATE









      :processDebugJavaRes UP-TO-DATE









      Total time: 2.568 secs

      Built the following apk(s):




      Would be grateful if anyone can guide me to restore the internet links in my apk?