cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bowser (JIRA)" <>
Subject [jira] [Resolved] (CB-9643) Android platform does not load "cordova_plugins.js" at cold start (on real device)
Date Mon, 21 Sep 2015 20:32:04 GMT


Joe Bowser resolved CB-9643.
    Resolution: Cannot Reproduce

I can't reproduce this issue on the Nexus 6 running 5.1.1.  You do need a plugin installed
for this file to exist, and I don't see any line in your repro steps that did that.  I installed
device so that the file exists before testing this.

> Android platform does not load "cordova_plugins.js" at cold start (on real device)
> ----------------------------------------------------------------------------------
>                 Key: CB-9643
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: , Plugin Battery Status, Plugin Camera, Plugin Contacts, Plugin
Device Orientation, Plugin Dialogs, Plugin File, Plugin Geolocation, Plugin Globalization,
Plugin InAppBrowser, Plugin Media, Plugin Media Capture, Android
>    Affects Versions: 4.1.1
>         Environment: Real device: Nexum 10, Android 5.1.1
>            Reporter: Christopher Mindus
> The "cordova_plugins.js" file is not loaded by cordova.js when application is cold started.
This is due to the fact that the "exports.load" function (line 1774) in cordova.js is never
> This problems causes plugin's not to be iniitalized/loaded properly and has dramatic
> Reproduce as follows:
> 1. Run the commands:
> cordova create test
> cd test
> 2. Edit www/index.html and change the "Content-Security-Policy" to:
> <meta http-equiv="Content-Security-Policy" content="default-src * 'self' filesystem:*
data:* gap:* 'unsafe-inline' 'unsafe-eval'; media-src *"/>
> 3. Edit www/index.html and below "<p class="event received">Device is Ready</p>"
> <p><a href="#" onclick="location.reload();">RELOAD PAGE</a>
> 4. Run the commands:
> cordova platform add android --save
> cordova build
> 5. Connect a real device using USB, in my case a Nexum 10 with Android 5.1.1.
> 6. Run command to start the built app:
> cordova run android
> 7. Check with e.g. GapDebug when the app is started, and you will see that only cordova.js
and index.html are loaded from the root www directory, not the cordova_plugins.js.
> 8. Press the "RELOAD PAGE" link on the page. Now check with GapDebug and you will find
that cordova_plugins.js is loaded. I.e. in "warn start" it works fine.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message