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
Contributor
TinyDaddy
Posts: 30
Registered: ‎05-18-2013
My Carrier: Non

Native Extension Example Can Not Run!

Hi all,

 

i tried to run the Native Extension Example from http://developer.blackberry.com/html5/documentation/creating_extensions_for_bb10_apps.html.

but it can not run in my computer after i configured all following the tutorial.

here is the log output by Chrome:

 

Console was cleared ripple.js:37
Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:37
webworks.bb10 :: Initialization Finished (Make it so.) ripple.js:37
eula response:  true ripple.js:47
GET local:///chrome/webworks.js  index.htm:4
webworks.bb10 :: fired webworksready event! ripple.js:37
Uncaught ReferenceError: example is not defined

 

can anybody give me a hand?

 

 

 

 

Please use plain text.
BlackBerry Development Advisor
bryanhiggins
Posts: 181
Registered: ‎12-18-2012
My Carrier: Bell

Re: Native Extension Example Can Not Run!

Hi,

 

You cannot run native extensions inside Ripple. You'll need a device or simulator.

Bryan Higgins
BlackBerry WebWorks
@bryanhiggins
Please use plain text.
Contributor
TinyDaddy
Posts: 30
Registered: ‎05-18-2013
My Carrier: Non

Re: Native Extension Example Can Not Run!

yes, i found that.

so i run it on my simulator.

but i got a new problem that i can not find my the lib file for my native extension.

but i had put everything in its own place following the manaul in developer site.

Please use plain text.
Contributor
TinyDaddy
Posts: 30
Registered: ‎05-18-2013
My Carrier: Non

Re: Native Extension Example Can Not Run!

BTW, there is tip:
"Make sure that your WebWorks applications whitelist the extension otherwise the application will not be able to use the extension"
what is meaning of "whitelist the extension"? how to check if my app whitelist the extension?
Please use plain text.
Contributor
TinyDaddy
Posts: 30
Registered: ‎05-18-2013
My Carrier: Non

Re: Native Extension Example Can Not Run!

Well, let me answer this question again.

the problem is that the manual in developer site sucks.

anyone who want to learn how to create a native extension pls. follow the new manual “https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/Template”.

 

BTW, thought the way to create a native extension is updated, can BB keep the manual in developer site update also?

 

Please use plain text.