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: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Webworks extension for BB10 to send SMS Messages

Typically this would be index,js but can happen up-stream

 

The usual error is some silly little tryo (done it here)

 

The most obvious is a comma rather than a dot or semi

 




Click the like button if you find my posts useful!
Developer
Posts: 16
Registered: ‎10-08-2013
My Device: Z10
My Carrier: Rogers

Re: Webworks extension for BB10 to send SMS Messages

Hi all,

 

  I got the Native Extension working with my WebWorks app.  The next step I need to solve is to send an SMS text message.  I've been looking all over for a good example, but the only one I could find was a Cascades example.  From other posts, I cannot use Cascade QT in a WebWorks extension.

 

  Is there a good API reference document I could use to help me figure out how to send a simple SMS message via a WebWorks native extension?

 

Thanks,

Marc.

Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: Webworks extension for BB10 to send SMS Messages

Can you give me a mo to move this up the chain pls

 

Don't expect BB to reply




Click the like button if you find my posts useful!
Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Webworks extension for BB10 to send SMS Messages

That API I mentioned before is what I think you'll want to use. It's Cascades but should work in an Extension I think.

 

https://developer.blackberry.com/native/reference/cascades/bb__pim__message__smstransport.html

 

It uses QString, so you'll need to add the QCore library as well as the PIM library. That can be tricky to get right, so take a look at the DeviceInfo extension to make sure you get your libraries and include directories right. If you get an error message saying it can't find the extension .so file, then it's likely the includes that are broken.

Tim Windsor
Open Source Technical Lead
Highlighted
Developer
Posts: 16
Registered: ‎10-08-2013
My Device: Z10
My Carrier: Rogers

Re: Webworks extension for BB10 to send SMS Messages

Thanks Tim!

 

I got the SMS message being sent from a Webworks app on BB10!

 

I will post the source code soon for the community.

 

Marc.

Retired
Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Webworks extension for BB10 to send SMS Messages

That's awesome! Well done.

 

Would you be interested in contributing it to our BlackBerry Community APIs repo? You'd just need to sign the ICLA form which is a standard open source contribution form. Then do a pull request for that repo with your code.

 

The form is here: http://www.blackberry.com/legal/pdfs/webworks/Research_In_Motion_Limited_ICLA_021811_cl.pdf

 

Our repo is here: https://github.com/blackberry/WebWorks-Community-APIs

Tim Windsor
Open Source Technical Lead
New Member
Posts: 1
Registered: ‎01-10-2014
My Device: BB10 - Z30!
My Carrier: AT&T

Re: Webworks extension for BB10 to send SMS Messages

Since this extension never got posted, I just made a SMS Extension. I'm still adding features to it, but it already sends an SMS.

 

I'm putting the link for it below so that anyone that wants it can download it from here for the time being until it is finalized and uploaded to github.com/blackberry

 

http://code.shikhir.com/sms-bb10-cordova-plugin

 

-Shikhir