Topic
1 reply Latest Post - ‏2012-07-23T10:46:32Z by ShmulikB
SystemAdmin
SystemAdmin
570 Posts
ACCEPTED ANSWER

Pinned topic Error while invoking plugin from javascript

‏2012-07-10T17:17:26Z |
Hi,

I tried to execute the sample "Module 9.3 – Android Development Using the PhoneGap Plugin".
But I am getting an error javascript while invoking the window.plugins.helloWorldPlugin.sayHello(..).
The error is "window.plugins.helloWorldPlugin" is undefined.
I followed the following steps

1) Start by creating a Java class for a plugin
2) Add your plugin entry to the res\xml\plugins.xml file
3) Adding the Plugin to DOM
4) Invoking plugin from JavaScript

is there anything I am missing?

Thanks
  • ShmulikB
    ShmulikB
    1 Post
    ACCEPTED ANSWER

    Re: Error while invoking plugin from javascript

    ‏2012-07-23T10:46:32Z  in response to SystemAdmin
    Hi,
    Are you running it on a device or an emulator?
    Which device/emulator?