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

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

Callback parameters are undefined

Background:

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.

 

Notes:

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"
    xmlns:rim="http://www.blackberry.com/ns/widgets"
    version="1.0.0.0" id="Weo">  
   <name>Weo</name>
   <description>Project weo</description>
   <author>Emil Olofsson</author>
   <content src="index.html" rim:allowInvokeParams="true">
       <rim:background src="listener.html" runOnStartup="true" />
   </content>
   <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="1.0.0.0"/>
    <feature id="webworks.bbalert.vibrate" required="true" version="1.0.0.0"/>
    <feature id="blackberry.utils" />
    <feature id="blackberry.system.event" />
</widget>

 

Thanks for any assistance on the subject.

Cheers Emil