Skip to content

Accessing Plugins #30

@MichaelTague

Description

@MichaelTague

Hi, I'm trying to use a webview to load an external URL and to let that loaded page/js invoke a plugin.

I can load the page simply enough: webview.Show(URL), and it correctly displays and can load JS and CSS - basically works as expected. I've included in the directory of my HMTL the cordova.js file. This makes the "cordova" varable present and even cordova.exec. But, when I try this:

cordova.exec(null, null, "Vibration", "vibrate", [1000]);

It doesn't produce any errors, but nothing vibrates either. I've tried other plugins as well. All are included in my calling application. I've even included the other files/dirs of a cordova app: cordova_plugins.js, cordova-js-src, & plugins but nothing happens.

Does anyone have a suggestion of what I might be missing? Or an example of where this works?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions