additional plugins not available?

Ask, and ye shall receive.
jenbeaven
Posts: 7
Joined: 21:37, 16 Nov 2014

additional plugins not available?

Postby jenbeaven » 19:43, 20 Nov 2014

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?

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: additional plugins not available?

Postby micke » 11:18, 21 Nov 2014

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

jenbeaven
Posts: 7
Joined: 21:37, 16 Nov 2014

Re: additional plugins not available?

Postby jenbeaven » 19:49, 24 Nov 2014

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!

User avatar
micke
Posts: 256
Joined: 20:49, 18 Nov 2013

Re: additional plugins not available?

Postby micke » 15:49, 27 Nov 2014

Thanks a lot for the feedback!


Return to “Questions and answers”

Who is online

Users browsing this forum: No registered users and 50 guests