06-20-2012 01:37 PM - edited 06-20-2012 02:13 PM
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>
Solved! Go to Solution.
06-20-2012 03:10 PM
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.![]()