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

Posts: 1
Registered: ‎07-26-2012
My Device: Bold 9900
My Carrier: Tele2

Callback parameters are undefined


Hi, I've been working on a small project with a background Email Listener that should pop-up a page when receiving email from a certain address and a certain subject.


The application almost works as I want to, it reacts to incoming email and my page is displayed.


The Problem:

I've been using the following community extension API EmailListener

The MessageObject parameter in the callback function is 'undefined' and I am completely unable to access the servicename parameter in my callback function.


Is there something I need to add to my config.xml to be able to pass parameters from extension to my webworks application.



Blackberry bold 9900

SDK 2.3 (tried it on 2.1.1 and 2.2 as well)

JDK 1.7


Current config.xml

<widget xmlns="http://www.w3.org/ns/widgets"
    version="" id="Weo">  
   <description>Project weo</description>
   <author>Emil Olofsson</author>
   <content src="index.html" rim:allowInvokeParams="true">
       <rim:background src="listener.html" runOnStartup="true" />
   <rim:orientation mode="portrait" />
   <rim:navigation mode="focus" />
    <icon src="images/icon.png"/>
    <feature id="webworks.message.email" />
    <feature id="blackberry.message" />
    <feature id="blackberry.app.event" />
    <feature id="blackberry.app" /> 
    <feature id="webworks.bbalert.led" required="true" version=""/>
    <feature id="webworks.bbalert.vibrate" required="true" version=""/>
    <feature id="blackberry.utils" />
    <feature id="blackberry.system.event" />


Thanks for any assistance on the subject.

Cheers Emil