Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: Unhandled error when building or runnning a Cordova/PhoneGap BB10 app

unfortunately the cordova 3.0.0 "plugin add" command isn't working so well..it created an infinite loop of directories on the file system that is now impossible to delete.

Please use plain text.
BlackBerry Development Advisor
bryanhiggins
Posts: 200
Registered: ‎12-18-2012
My Device: Z10, Q10, Q5, Z30, Z3
My Carrier: Bell

Re: Unhandled error when building or runnning a Cordova/PhoneGap BB10 app

Hi,

 

Would you mind logging an issue with more details on how to reproduce?

 

https://issues.apache.org/jira/browse/CB

 

Thanks!

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Please use plain text.
Developer
ryansweny
Posts: 64
Registered: ‎07-15-2008
My Device: Z10
My Carrier: Rogers

Re: Unhandled error when building or runnning a Cordova/PhoneGap BB10 app

The previous issue was cause by the folder stucture of the plugin. We are supporting mutiple platforms and had the common plugin.xml in the top folder and all patform specific samples and plugin src below that. The tools can't handle this so just have 'plugin' and 'samples' as the only two root folders and put the platform specific stuff in both of these sub folders.

 

I did report a more serious issue though. Whenever I try and implement certain camera API's the entire plugin fails to load. It appears that mearly including a static method in the plugin kills the entire plugin.

 

Example bad method signature:

static void still_callback(camera_handle_t handle, camera_buffer_t* buf, void* arg)

 

Bug report:

https://issues.apache.org/jira/browse/CB-4954

Please use plain text.