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
Developer
Posts: 19
Registered: ‎03-06-2014
My Device: blackberry z10 stl100-3
My Carrier: n/a

sms support with webworks 2.0

I've stumbled across the exact same problem as this poster from 2 years ago:

 

https://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/blackberry-invoke-invoke-Text-M...

 

I need to send an sms. Using invoke with the messenger would be an okay work around if it would close the messenger app after the message is sent. The boolean flag "send" doesn't seem to do anything whether set to true or false. 

send

This field should be set as a Boolean value. If the value is set to true, the message is sent right away. If the value is false, the composer remains on the screen.

Either way, the message composer still stays onscreen until the user manually exits it, then the parent app pops back up. I need the messenger to either work automatically in the background, or close when it send the messages.

 

I tried the same thing with the native email client and it works just the way I need it:

 

https://developer.blackberry.com/html5/apis/v2_0/blackberry.invoke.card.html#jbo1385148823174

 

the onDone closes the email client and goes back to the parent app perfectly and there's no need to encode any of the data sent.

 

So am I stuck writing my own webworks api for sms, or does anyone know of a workaround? Is 

<feature id="blackberry.message.sms" />

going to get support for the blackberry10?

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: sms support with webworks 2.0

A colleague of mine is working on an extension that will enable this functionality for an SMS Sender. It's almost ready and should be committed to our Github repository soon. Keep an eye out here:

https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10-Cordova

 

I don't have an exact date unfortunately as to when it will go live.


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.