-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing Plugins #30
Comments
I created a webview using webview.Show(URL), when I type the command "device", it returns: In Ionic main webview, the same "device" command returns: It will be appreciated if you could provide a simple example to access cordova plugin from the webview. |
@dullpage did you manage to get this working? I'm also looking for a way to access native plugins on the website I'm opening with webview.Show(); |
I use this plugin in my ionic3 project,after open second webview can invoke cordova plugin as expected. |
Can't access any cordova plugin or variable from second webview.
|
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:
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?
The text was updated successfully, but these errors were encountered: