11-19-2009 09:33 AM
I have been looking here but it seems out of date:
Iit says to use the features below but the blackberry message doesn't exist. I
<feature id="blackberry.message" version="1.0.0"/>
<feature id="blackberry.identity" version="1.0.0"/>
<feature id="blackberry.find" version="1.0.0"/>
I tried the code below and it failed on the first line.
var message = new blackberry.message.Message(); //fails here
message.toRecipients = "1-555-555-5555";
message.subject = "Hello";
message.body = "World";
Any help appreciated
11-19-2009 12:23 PM - edited 11-19-2009 12:24 PM
The Widget API documentation is up to date. Can you specify which Web Plug-in you are using? (Eclipse or Visual Studio)
There is an XML file that was distributed with the tooling that is not up to date. You need to add a couple entries into the XML file and then the tooling will recognize it.
You need to add these sub elements to the <features> element found in the "library.xml" file.
<feature id="blackberry.find" version="18.104.22.168" required="true">The find feature allows for searching PIM data</feature> <feature id="blackberry.message" version="22.214.171.124" required="true">The message feature allows for accessing the Email message store</feature>
In the Visual Studio Web Plug-in, this "library.xml" file can typically be found in the default install path of "C:\Program Files\Research In Motion\BlackBerry Widget Packager\docs\library.xml"
In the Eclipse Web Plug-in "[Install Path]\plugins\net.rim.browser.tools.wcpc_1.0.0.xxx
Once you add these entries, "blackberry.find" and "blackberry.message" should appear in the tooling.
Turns out that that bug was my fault
11-19-2009 09:06 PM
The other items that I know of are all listed in the known issues/release notes that were posted..
11-20-2009 12:49 PM
Hi there. I'm toying with the Push Demo Widget example, but I'm having trouble running it. I get it packaged up and installed in a simulator just fine, but at runtime blackberry.push is undefined. I've doublechecked that the <feature/> elements in config.xml are correct. Do I need to do something on the device (simulated) to enable/allow use of the blackberry.* APIs? BTW, I get a similar result when I run other Widget examples (ex. PIM widget example).
Here are some environment details:
Windows 7 32-bit
Widget Packager version 126.96.36.199.
MDS 4.1.4 simulator
9500 simulator with OS version 188.8.131.52.
Thanks for the help,