WebWorks app not to recognize the plugin for Blackberry app
Hello! I'm portage a webapp Android to WebWorks. My Android application using Phonegap, so when I discovered the new WebWorks used to, it was a great relief. But the problem came when I tried to use the BlackBerry push service, because demand for some strange reason does not recognize the plugins I have installed through the console, just like the documentation says http://developer.blackberry.com/html5/apis/beta/blackberry.app.html.
Since then I have removed everything that belonged to the push service and I installed the com.blackberry.app plugin to test the ways that they are supposed to work. It debugged in the Web Inspector and I have this message.
ReferenceError: Can't find variable: blackberry
This error came from this line in my code:
Console.log ("the State of the screen is:" + blackberry.app.windowState);
In my config.xml file, I have the line:
I am new to this platform and I don't know if the plugins should be called somewhere in the html file or the js to make it work. Or is there something else wrong on how I use the plugins?
BTW: my application uses the last cordova because I developed since the SDK WebWorks 220.127.116.11, but my app Android used Cordova 2.0.0 and this library is called in the html code. So, when I tried to change the cordova for the last file, the application didn't work, so I left there where he was.
In the standard application of Cordova, the application calls app.initialize as follows (additional code left to show the implementation of the call and the scripts required):