Creating a new cordova project and adding the plugins I need, I can drag the "index.html" to the workbench and run almost everything. However, it seems only the plugins in the demo projects are accessible.
For instance, after deviceready I try both of these lines (separately):
ble = evothings.ble;
pushNotification = window.plugins.pushNotification;
ble has a valid object; for the other, I get:
TypeError: undefined is not an object (evaluating 'window.plugins.pushNotification')
If I build the cordova project to a device directly, it finds both evothings.ble and window.plugins.pushNotification with no problem.
I love the workbench so far, how do I get around this snag?
additional plugins not available?
Re: additional plugins not available?
Hi Jen,
If you have built a Cordova project with the plugins you wish to use, it should be possible to use that project with the Workbench. Is this what you are doing or are you using Evothings Client? Evothings Client won't work for push notifications as that plugin is not included.
Here is some documentation for using your own Cordova project with Evothings Workbench:
http://evothings.com/doc/build/cordova- ... rEvothings
The plugins included with Evothings Client are listed here as a reference:
http://evothings.com/doc/studio/mobile- ... tedPlugins
Let me know how it goes.
Best, Mikael
If you have built a Cordova project with the plugins you wish to use, it should be possible to use that project with the Workbench. Is this what you are doing or are you using Evothings Client? Evothings Client won't work for push notifications as that plugin is not included.
Here is some documentation for using your own Cordova project with Evothings Workbench:
http://evothings.com/doc/build/cordova- ... rEvothings
The plugins included with Evothings Client are listed here as a reference:
http://evothings.com/doc/studio/mobile- ... tedPlugins
Let me know how it goes.
Best, Mikael
Re: additional plugins not available?
OK, it works now.
I create my Cordova app and add all the plugins; then somewhere add the link to connect to workbench.
Drag "index.html" to workbench (only once.)
Run program natively (via XCode or Cordova cli) on devices, use the "connect" button, then use "Run" from workbench. After that, save/refresh works, I get the console log, etc.
(I tried updating the config.xml file, but that didn't connect. I'm sure I'm missing something, but since the above way works, I'm happy.)
And this is a shiny beautiful tool! Thanks!
I create my Cordova app and add all the plugins; then somewhere add the link to connect to workbench.
Drag "index.html" to workbench (only once.)
Run program natively (via XCode or Cordova cli) on devices, use the "connect" button, then use "Run" from workbench. After that, save/refresh works, I get the console log, etc.
(I tried updating the config.xml file, but that didn't connect. I'm sure I'm missing something, but since the above way works, I'm happy.)
And this is a shiny beautiful tool! Thanks!
Re: additional plugins not available?
Thanks a lot for the feedback!
Return to “Questions and answers”
Who is online
Users browsing this forum: No registered users and 6 guests