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
Contributor
Posts: 14
Registered: ‎01-16-2011
My Device: 8520
Accepted Solution

Is there any listener for email message ?

Hello Guys...

 

I am trying to make a email message trigger the procedure or function when the email arrived.

Is there any email message listener function for email (like in SMS)

 

thanks...

 

 

rudy

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Is there any listener for email message ?

Currently there isn't this capability built into the JS APIs.. I know some partners have created JavaScript extensions to do what you are describing. 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
Posts: 14
Registered: ‎01-16-2011
My Device: 8520

Re: Is there any listener for email message ?

 

Hello Tim,...

 

thanks for your previous reply,

 

I wonder, is that possible the incoming email handle using this method (push/data) like in the API reference ?

 

http://www.blackberry.com/developers/docs/widgetapi/blackberry.push.html

or

http://www.blackberry.com/developers/docs/widgetapi/blackberry.push.Data.html

 

 

and is there any webworks sample to run push ? I only found the sample using java on the web.

 

many thanks...

 

 

Rudy

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Is there any listener for email message ?

You are unable to detect incoming emails using the push API.  The push API is for pushing your own custom data to your application.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Developer
Posts: 64
Registered: ‎02-12-2011
My Device: 9300
My Carrier: Yoigo

Re: Is there any listener for email message ?

It would be really useful an email listener with the possibility of defining Javascript callback functions, just like there is for SMS and Push.

I've been trying to build one but I'm having problems getting the FolderListener to call back a Javascript function from my webwork app.

Any ideas?