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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Regular Contributor
Posts: 55
Registered: ‎12-23-2011
My Device: 9900 / PB 2.0641
My Carrier: SFR
Accepted Solution

WebWorks BB10 build error.

[ Edited ]

EDIT: I have the same issue using the following command-line (i.e without ripple) :

bbwp v:\first\out\morfGPS.zip -d so that I presume it's not Ripple related (title edited).

 

[BlackBerry 10 WebWorks SDK 1.0.0.15]

 

When I build my app with Ripple, I get the following error in the console :

Failed to find feature with id: blackberry.system.event

 

I've read the PB faqs and learned I have to respect hirachy in the features and then added <feature id="blackberry.system" /> before the <feature id="blackberry.system.event" />.

Still no luck ... any idea ?

 

P.S: the "<feature id="blackberry.system.event" />" is present in BBui.js documentation, mostly why it's in mine. Thought it was required ...

 

<?xml version="1.0" encoding="UTF-8"?>
	<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.0" rim:header="MorfGPS" id="SuperMorf">
	<name>MorfGPS</name>
	<description>blah GPS and utilities App</description>
	<author>Antoine (Superfly_FR)</author>
	<content src="index.htm"/>
	<icon src="img/icon.png"/>

	<rim:loadingScreen backgroundImage="\img\background.png" onFirstLaunch="true">
		<rim:transitionEffect type="fadeIn" />
	</rim:loadingScreen>
	<rim:navigation mode="focus" />

	<feature id="blackberry.system" />
	<feature id="blackberry.system.event" />
	<feature id="blackberry.app" />
	<feature id="blackberry.app.event" />

</widget>


Highlighted
Regular Contributor
Posts: 55
Registered: ‎12-23-2011
My Device: 9900 / PB 2.0641
My Carrier: SFR

Re: WebWorks BB10 build error.

Events for BB10 are handled differently.

Add events with blackberry.event.addEventListener.
Events are in diff areas.

 

You do not need to add blackberry.app.events to config.xml. add/removeEventListener are always available.

(personal note : so goes for blackberry.app.event if you refer to my config.xml above)

However, you DO have to add any feature that contains the actual event you want to listen for.

 

Thanks goes to Ken Wallis.