Skip to main content
Astro The Goat
Inspiring
July 2, 2020
Answered

net:ERR_INVALID_RESPONSE

  • July 2, 2020
  • 1 reply
  • 2544 views

I have just developed an Andriod app using Adobe Captivate.

 

The Captivate project makes use of "Web objects" to link to video files that are held on a separate server.

 

When I try to access any of these videos I get the following message

 

The web page at .... could not be loaded because..net:ERR_INVALID_RESPONSE 

 

Before you ask...I did not want to include the videos within the app as this would make it too large.

 

Any advice or suggestions would be most welcome. 

    This topic has been closed for replies.
    Correct answer Astro The Goat

    I solved the problem myslef.

     

    I needed to add a few lines of code to the config.xml - these are...

     

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

     

    and 

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

    1 reply

    Eric Dumas
    Community Expert
    Community Expert
    July 2, 2020

    Hi,

    Can you confirm the exact versions of your software and operating system.

    Can you include screenshots of the settings you use?

    Astro The Goat
    Inspiring
    July 3, 2020

    I am using Adobe Captivate 2019 11.5.1.499 running on Windows 10.

     

    I am opening the app using Android version 6.0.1 on an Asus Nexus 7 2013.

     

    Here's the config.xml code for the app..

     

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns = "http://www.w3.org/ns/widgets"
    xmlns:gap = "http://phonegap.com/ns/1.0"
    id = "mhsi.library"
    version = "1.4">
    <name>MHSI-Library</name>

    <description>
    Captivate E-Learning Course
    </description>

    <gap:platform name="android" />

    <plugin name="cordova-plugin-file" spec="4.3.3" />
    <plugin name="cordova-plugin-device" />
    <plugin name="cordova-plugin-inappbrowser" />
    <plugin name="cordova-plugin-statusbar" />

    <icon src="icon.png" />

    <preference name="AndroidPersistentFileLocation" value="Internal" />
    <preference name="permissions" value="none" />
    <preference name="phonegap-version" value="cli-8.0.0" />
    <preference name="target-device" value="universal" />
    <preference name="fullscreen" value="false" />

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

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

     

     

    Astro The Goat
    Astro The GoatAuthorCorrect answer
    Inspiring
    July 3, 2020

    I solved the problem myslef.

     

    I needed to add a few lines of code to the config.xml - these are...

     

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

     

    and 

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