Cordova Plugins Don't Work in index.html

  • Cocoon Version:
    v2.1 or 2.2(?)

  • Basic description of the problem:
    The following plugins (“”, and “cordova-plugin-filestorage”) don’t seem to work on index.html, but “cordova-plugin-filestorage” at least works just fine in other webpages called within iframes.

  • Device info:
    Infinix Hot 4, Android 6; XOS Chameleon v2.0.0

  • Steps will reproduce the problem:
    1. Launch the app
    2. Either changing game’s language or trying to sign into Google Play Games

  • Expected result:
    Successfully connectinf to Google Play Games, and/or change game’s language.

  • Error log
    (Yet to figure out how to get error logs via Cocoon projects.)

  • Webview engine(s):

  • Used plugins (if relevant):”, and “cordova-plugin-filestorage”


you need to installs those plugins in the “config.xml” file, not in the “index.html”.

The usage has to happen in the index.html file. However it won’t work if you haven’t installed the cordova plugins at your project.



Actually, I already installed the plugins in config.xml. It’s the JavaScript codes of theirs that don’t seem to work. I’m guessing cordova.js didn’t load properly on this particular app of mine, since 2 of my 3 Cordova apps have no problem using the JS codes within their own index.html webpages.

But, it’s not a big deal. Like I said, with my current app, I managed to use other webpages via iframe to go around this glitch.


Come to think of it, Cordova has recently fallen apart even in other webpages. The plugins only work half the time. This urgently needs fixing.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.