5 Replies Latest reply on Sep 18, 2017 3:42 AM by kerrishotts

    HelloWorld app not working in browser

    Devesh M

      Hi,

       

      I have installed Phonegap first time and followed the instruction as it is mentioned in Getting Started | PhoneGap Docs.

      As per screen shot, i can see two urls. I clicked on both and got some error in console.

       

      200 /

      200 /css/index.css

      200 /js/index.js

      304 /socket.io/socket.io.js

      200 /cordova.js

      200 /img/logo.png

      200 /socket.io/?EIO=3&transport=polling&t=LvrQh9F

      200 /cordova_plugins.js

      200 /socket.io/?EIO=3&transport=polling&t=LvrQh9h&sid=scMlM5dsjwBvJ8aJAAAA

      200 /plugins/cordova-plugin-battery-status/www/battery.js

      200 /plugins/cordova-plugin-battery-status/src/browser/BatteryProxy.js

      200 /plugins/cordova-plugin-camera/www/CameraConstants.js

      200 /plugins/cordova-plugin-camera/www/CameraPopoverOptions.js

      200 /plugins/cordova-plugin-camera/www/Camera.js

      200 /plugins/cordova-plugin-camera/src/browser/CameraProxy.js

      200 /plugins/cordova-plugin-file/www/DirectoryEntry.js

      200 /plugins/cordova-plugin-file/www/DirectoryReader.js

      200 /plugins/cordova-plugin-file/www/Entry.js

      200 /plugins/cordova-plugin-file/www/File.js

      200 /plugins/cordova-plugin-file/www/FileEntry.js

      200 /plugins/cordova-plugin-file/www/FileError.js

      200 /plugins/cordova-plugin-file/www/FileReader.js

      200 /plugins/cordova-plugin-file/www/FileSystem.js

      200 /plugins/cordova-plugin-file/www/FileUploadOptions.js

      200 /plugins/cordova-plugin-file/www/FileUploadResult.js

      200 /plugins/cordova-plugin-file/www/FileWriter.js

      200 /plugins/cordova-plugin-file/www/Flags.js

      200 /plugins/cordova-plugin-file/www/LocalFileSystem.js

      200 /plugins/cordova-plugin-file/www/Metadata.js

      200 /plugins/cordova-plugin-file/www/ProgressEvent.js

      200 /plugins/cordova-plugin-file/www/fileSystems.js

      200 /plugins/cordova-plugin-file/www/requestFileSystem.js

      200 /plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js

      200 /plugins/cordova-plugin-file/www/browser/isChrome.js

      200 /plugins/cordova-plugin-file/www/browser/Preparing.js

      200 /plugins/cordova-plugin-file/src/browser/FileProxy.js

      200 /plugins/cordova-plugin-file/www/fileSystemPaths.js

      200 /plugins/cordova-plugin-file/www/browser/FileSystem.js

      200 /plugins/cordova-plugin-media-capture/www/CaptureAudioOptions.js

      200 /plugins/cordova-plugin-media-capture/www/CaptureImageOptions.js

      200 /plugins/cordova-plugin-media-capture/www/CaptureVideoOptions.js

      200 /plugins/cordova-plugin-media-capture/www/CaptureError.js

      200 /plugins/cordova-plugin-media-capture/www/MediaFileData.js

      200 /plugins/cordova-plugin-media-capture/www/MediaFile.js

      200 /plugins/cordova-plugin-media-capture/www/capture.js

      200 /plugins/cordova-plugin-media-capture/src/browser/CaptureProxy.js

      200 /plugins/cordova-plugin-contacts/www/contacts.js

      200 /plugins/cordova-plugin-contacts/www/Contact.js

      200 /plugins/cordova-plugin-contacts/www/ContactAddress.js

      200 /plugins/cordova-plugin-contacts/www/ContactError.js

      200 /plugins/cordova-plugin-contacts/www/ContactField.js

      200 /plugins/cordova-plugin-contacts/www/ContactFindOptions.js

      200 /plugins/cordova-plugin-contacts/www/ContactName.js

      200 /plugins/cordova-plugin-contacts/www/ContactOrganization.js

      200 /plugins/cordova-plugin-contacts/www/ContactFieldType.js

      200 /plugins/cordova-plugin-device/www/device.js

      200 /plugins/cordova-plugin-device/src/browser/DeviceProxy.js

      200 /plugins/cordova-plugin-device-motion/www/Acceleration.js

      200 /plugins/cordova-plugin-device-motion/www/accelerometer.js

      200 /plugins/cordova-plugin-device-motion/src/browser/AccelerometerProxy.js

      200 /plugins/cordova-plugin-device-orientation/www/CompassError.js

      200 /plugins/cordova-plugin-device-orientation/www/CompassHeading.js

      200 /plugins/cordova-plugin-device-orientation/www/compass.js

      200 /plugins/cordova-plugin-device-orientation/src/browser/CompassProxy.js

      200 /plugins/cordova-plugin-dialogs/www/notification.js

      200 /plugins/cordova-plugin-dialogs/www/browser/notification.js

      200 /plugins/cordova-plugin-file-transfer/www/FileTransferError.js

      200 /plugins/cordova-plugin-file-transfer/www/FileTransfer.js

      200 /plugins/cordova-plugin-file-transfer/www/browser/FileTransfer.js

      200 /plugins/cordova-plugin-globalization/www/GlobalizationError.js

      200 /plugins/cordova-plugin-globalization/www/globalization.js

      200 /plugins/cordova-plugin-globalization/src/browser/GlobalizationProxy.js

      200 /plugins/cordova-plugin-globalization/www/browser/moment.js

      200 /plugins/cordova-plugin-inappbrowser/www/inappbrowser.js

      200 /plugins/cordova-plugin-inappbrowser/src/browser/InAppBrowserProxy.js

      200 /plugins/cordova-plugin-media/www/MediaError.js

      200 /plugins/cordova-plugin-media/www/Media.js

      200 /plugins/cordova-plugin-media/www/browser/Media.js

      200 /plugins/cordova-plugin-network-information/www/network.js

      200 /plugins/cordova-plugin-network-information/www/Connection.js

      200 /plugins/cordova-plugin-network-information/src/browser/network.js

      200 /plugins/cordova-plugin-splashscreen/www/splashscreen.js

      200 /plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js

      200 /plugins/cordova-plugin-statusbar/www/statusbar.js

      200 /plugins/cordova-plugin-statusbar/src/browser/statusbar.js

      200 /plugins/cordova-plugin-vibration/www/vibration.js

      200 /plugins/cordova-plugin-vibration/src/browser/Vibration.js

      adding proxy for Battery

      adding proxy for Camera

      200 /config.xml

      adding proxy for File

      adding proxy for Capture

      adding proxy for Device

      adding proxy for Accelerometer

      adding proxy for Compass

      adding proxy for Globalization

      adding proxy for InAppBrowser

      adding proxy for NetworkStatus

      adding proxy for SplashScreen

      Persistent fs quota granted

      Error: exec proxy not found for :: StatusBar :: _ready

      Received Event: deviceready

      200 /img/logo.png

       

      Browser is in hanging mode and I get a timeout in browser after few minutes.

       

       

      I really don't understand the reason. Please help.

        • 1. Re: HelloWorld app not working in browser
          kerrishotts Adobe Employee

          Some plugins don't work in the browser. But I doubt that's causing your app to hang.

           

          Try checking the javascript console in your browser to see if any errors are being logged while your app is starting.

           

          Also, try testing with the PhoneGap Developer App on your phone. Does the app launch inside the PGDev app?

          • 2. Re: HelloWorld app not working in browser
            Devesh M Level 1

            I have checked browser's console. There is nothing there.

            There is no response from server and browser is in hanging mode only. After some time, it says

            The requested URL could not be retrieved - Connection to 169.254.80.80 Failed

            I am not able to find any reason, because this is a very basic stage of PhoneGap where i have got stuck.

            I am not able to test it in PhoneGap Developer app, because i am not on the same network.

            • 3. Re: HelloWorld app not working in browser
              kerrishotts Adobe Employee

              Looking closer, those IP addresses look a bit strange.

               

              Can you post the output from "ipconfig" from the command prompt?

              • 4. Re: HelloWorld app not working in browser
                Devesh M Level 1

                I guess, it's working for me.

                 

                There are two IP's as i can see. When I tried the 1st one, i got no response from server and browser goes into hanging mode. But when i tried 2nd one which is my local machine IP, i can see that application is working in browser.

                 

                Please tell me, what is the first IP and what's the significance of the it ?

                 

                 

                IPCONFIG

                 

                Windows IP Configuration

                Ethernet adapter vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch):

                   Connection-specific DNS Suffix  . :

                   Link-local IPv6 Address . . . . . : fe80::a1c2:afdc:77c3:85a1%8

                   IPv4 Address. . . . . . . . . . . : 169.254.80.80

                   Subnet Mask . . . . . . . . . . . : 255.255.0.0

                   Default Gateway . . . . . . . . . :

                Ethernet adapter vEthernet (Intel(R) Ethernet Connection I217-LM Virtual Switch):

                   Connection-specific DNS Suffix  . : mycompany.com

                   Link-local IPv6 Address . . . . . : fe80::b4bd:a69b:3f04:766b%4

                   IPv4 Address. . . . . . . . . . . : 172.16.92.217

                   Subnet Mask . . . . . . . . . . . : 255.255.255.0

                   Default Gateway . . . . . . . . . : 172.16.92.1

                Tunnel adapter isatap.mycompany.com:

                   Media State . . . . . . . . . . . : Media disconnected

                   Connection-specific DNS Suffix  . : mycompany.com

                Tunnel adapter isatap.{E7EB12A1-7BC2-494F-9945-BF1F2FD05FF1}:

                   Media State . . . . . . . . . . . : Media disconnected

                   Connection-specific DNS Suffix  . :

                 

                --

                Devesh

                • 5. Re: HelloWorld app not working in browser
                  kerrishotts Adobe Employee

                  Looks like the 169.* address is there to support your Windows Phone emulator.