2 Replies Latest reply on Apr 25, 2017 6:40 PM by dDafd

    Not executing url links


      I am trying to create a app using  adobe phonegap build. For some reason it is not executing the url link in index.html . It appears to get to the javascript redirect. I believe that there is some new security setting that I have not found that blocks the redirect. The included index,html and config,xml are my latest tries. Does anyone see what I am missing?


      Thanks for any help





      <!DOCTYPE html>



      <meta charset="utf-8">      

      <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />

      <meta http-equiv="Content-Security-Policy" content="default-src * 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *" />

      <title>Blank App</title>

      <link rel="stylesheet" type="text/css" href="css/index.css" />



          <div class="app">


              <div id="deviceready" class="blink">

                  <p class="event listening">Connecting to Device</p>

                  <p class="event received">Connected to Device</p>

      <script type="text/javascript">


          window.location = "http://www.vxxi.com/mobile.htm";






          <script type="text/javascript" src="cordova.js"></script>

          <script type="text/javascript" src="js/index.js"></script>

          <script type="text/javascript">















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

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

      <name>Mobile App</name>


      <author email="davidg@vxxi.com" href="http://www.vxxi.com">Dave</author>

      <content src="index.html" />

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

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

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

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

      <allow-navigation href="*" />

      <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:*" />

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


        • 1. Re: Not executing url links
          kerrishotts Adobe Employee

          Well, the first thing I notice in your config.xml is that you don't have the whitelist plugin installed.  Add


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


          to your config.xml and see if that helps.


          Second: is there a reason why you're redirecting to an external site? PhoneGap isn't really intended to be used to wrap external websites, and app stores can reject you for doing so as well (highly variable here -- some get through, some don't). Unless you need access to plugins, your user already has a great app for using your mobile website: their browser.

          • 2. Re: Not executing url links
            dDafd Level 1

            The plugin seems to have worked although I thought I had tried it before. Pointing to a external website is just step 1. There will be plugins next.