Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16644

Cordova Plugins are not loaded when they are not supported on certain platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Beta1
    • 4.1.1.Final
    • aerogear-hybrid
    • None
    • Hide

      1. Add the Webview-Debug plugin for remote debugging, if needed.
      2. Launch the kitchensink-cordova and kitchensink-cordova-contacts apps in WFK 2.5.
      3. Open the debugger provided in Chrome Developer Tools to see the error.

      Show
      1. Add the Webview-Debug plugin for remote debugging, if needed. 2. Launch the kitchensink-cordova and kitchensink-cordova-contacts apps in WFK 2.5. 3. Open the debugger provided in Chrome Developer Tools to see the error.

      I added the Cordova StatusBar plugin (supported on iOS and not on Android) to my HMT project. When run this project on an Android emulator, the statusbar plugin is not loaded by the tooling, even though a reference to the plugin is added to the starting page of the app - index.html.

      See the referenced screenshot as an example.

      This is not the case when using the Cordova CLI. The CLI commands ensure that the JS file for the StatusBar plugin is loaded on Android. While a 404 is not harmful in this case, it is certainly not recommended.

      As a note, we must try and match the Cordova CLI behavior as much as possible, and this is a slight deviation from it - the iOS-specific plugin is referenced in android/assets/www/cordova_plugins.js in the Android project but is not copied to the android/assets/www/plugins directory in the project.

            gercan@redhat.com Gorkem Ercan
            vineet.reynolds_jira Vineet Reynolds (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: