4 Replies Latest reply on May 29, 2017 9:06 AM by reinaldo suarez

    Application on jQuery Mobile does not connect externally

    reinaldo suarez

      I have developed a simple application with jQuery Mobile, the package in Phonegap Build, but when I install it does not work some things, like iframes, Youtube videos, in general can not connect externally.

      I've tried everything, like creating your own config.xml, with a Whitelist. But I can not connect externally. I would be grateful if you could give me a solution or where I can look for it.

      Thank you for everything.

        • 1. Re: Application on jQuery Mobile does not connect externally
          Chris W. Griffith Adobe Community Professional

          Please provide your config.xml (sans any sensitive elements) so we might see the issue. Also, what platform(s) are you building for?

          • 2. Re: Application on jQuery Mobile does not connect externally
            reinaldo suarez Level 1

            The platform is Jquery mobile.

            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.phonegap.example"

                versionCode = "10"

                version     = "1.0.0" >

            <name>JQM</name>

            <description>Prueba de jquery con phonegap</description>

            <author>Jquery Mobile</author>

            <content src="index.html"/>

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

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

            <access origin="*"/>

            <allow-intent href="*"/>

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

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

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

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

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

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

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

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

            <allow-navigation href="*"/>

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

            <preference name="android-targetSdkVersion" value="23"/>

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

            <preference name="android-signed" value="true"/>

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

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

            </widget>

            • 3. Re: Application on jQuery Mobile does not connect externally
              José Jesús Pérez Rivas Adobe Community Professional (Moderator)

              Hi Reinaldo (Hola Reinaldo, creo que hablas español, no? )

               

              Try with this code:

               

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

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

                  <name>JQM</name>

                  <description>

                      Prueba de jquery con phonegap

                  </description>

                  <author email="support@phonegap.com" href="http://phonegap.com">

                      PhoneGap Team

                  </author>

                  <content src="index.html" />

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

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

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

                  <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />

                  <plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />

                  <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2" />

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

                  <platform name="android">

                      <icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" />

                      <icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" />

                      <icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" />

                      <icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" />

                      <icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" />

                      <icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" />

                      <splash density="land-ldpi" src="www/res/screen/android/drawable-land-ldpi-screen.png" />

                      <splash density="land-mdpi" src="www/res/screen/android/drawable-land-mdpi-screen.png" />

                      <splash density="land-hdpi" src="www/res/screen/android/drawable-land-hdpi-screen.png" />

                      <splash density="land-xhdpi" src="www/res/screen/android/drawable-land-xhdpi-screen.png" />

                      <splash density="land-xxhdpi" src="www/res/screen/android/drawable-land-xxhdpi-screen.png" />

                      <splash density="land-xxxhdpi" src="www/res/screen/android/drawable-land-xxxhdpi-screen.png" />

                      <splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" />

                      <splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" />

                      <splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" />

                      <splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" />

                      <splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" />

                      <splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" />

                  </platform>

                  <access origin="*" />

                  <allow-intent href="*" />

                  <allow-navigation href="*" />

              </widget>

              1 person found this helpful
              • 4. Re: Application on jQuery Mobile does not connect externally
                reinaldo suarez Level 1

                Muchas gracias por su ayuda. El archivo config.xml, funciona perfectamente.