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
New Developer
Posts: 3
Registered: ‎12-13-2013
My Device: developer
My Carrier: simulator
Accepted Solution

net.rim.blackberry.api.mail.ServiceConfiguration

I could see ServiceConfiguration class in rim package..is there any equivalent method/logic there in cordova/webwork api in webworks 2.0? I need to get email just like

 

Session mailSession = Session.getDefaultInstance();
        ServiceConfiguration config = mailSession.getServiceConfiguration();
        String email = config.getEmailAddress();

 

Thanks in advance

Balu

Retired
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: net.rim.blackberry.api.mail.ServiceConfiguration

Hi Balu,  no there isn't an "email service" plugin available yet for WebWorks 2.0 / Cordova.

 

You would need to write your own plugin by wrapping any corresponding Native APIs in a JavaScript container, similar to what other devs have been doing here: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.