06-10-2012 11:14 PM
Need help resolving a BB10 WebWorks issue when debuging.
Packaging Error Question
From the command line I ran the standard packaging command
bbwp [location of project].zip -d -o [locationofoutput]
Resulting in:
[INFO] Populating application source [INFO] Parsing config.xml [INFO] Error: Please enter a valid application id
Here's my config.xml file, I am actually building from the bbUI.js sample
<?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.2"> <name>App name</name> <description>A sample description</description> <author>My Name</author> <icon src="images\icon.png" /> <icon src="images\icon.png" rim:hover="true" /> <rim:loadingScreen backgroundImage="images\background.png" foregroundImage="images\hippo.png" onFirstLaunch="true"> <rim:transitionEffect type="fadeIn" /> </rim:loadingScreen> <content src="index.htm" /> <access uri="http://chart.apis.google.com" subdomains="true" /> <feature id="blackberry.push" /> <feature id="blackberry.message.sms" /> <feature id="blackberry.ui.menu" /> <feature id="blackberry.ui.dialog"/> <feature id="blackberry.identity" /> <feature id="blackberry.system.event" /> <feature id="blackberry.app" /> <feature id="blackberry.app.event"/> </widget>
bbwp.properties & debug token question
Also... I know that in the previous WebWorks SDKs, you edit bbwp.properties and add a line that points to the location of your debug token.
Question:
Thanks!
Solved! Go to Solution.
06-11-2012 09:48 AM
Hello,
The id is an alphanumeric property of the main <widget> element. It cannot contain spaces or
<?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.2" id="yourIDhere">
You do not need to modify the bbwp.properties file. The Debug token documentation specifies where to set the debug token file. To enable debug token support, simply build your app with the -d flag.
Hope that helps!
06-14-2012 11:39 PM
Thank you Adam!
Seems I needed to rename my debug token to debugtoken.bar and move it to the root of the BlackBerry 10 WebWorks SDK directory.
Used the same -d flag command
Worked without having to edit bbwp.properties.
06-20-2012 12:29 PM - edited 06-20-2012 12:33 PM
For Ripple BB10 beta (chrome extension) users (but may apply to others as well).
Found in http://saplin.blogspot.fr/2012/05/ripple-bb-10-web
Possible causes for the error:
Looks like the webworks samples hasn't been updated (or maybe it's to prevent massive submissions with the same id ?). Anyhow, this should be documented ...