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 Contributor
Posts: 6
Registered: ‎11-21-2012
My Device: developer and non blackberry user
My Carrier: 919988540758

Blackberry webworks send sms callback

[ Edited ]

I am using following function to send sms in blackberry webworks

 

blackberry.message.sms.send(data, "+919988540758");

 

 I am able to send sms message but if sometimes it fails, I never know in my code if the sms is sent or not

is there any callback function that can tell me about my message status sent/failed

or there is any way where I can check this

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Blackberry webworks send sms callback

Good point. The listeners only tell about new messages, so it would be useful to have some callbacks linked to send().

Something for the bug tracker maybe?

--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
New Contributor
Posts: 6
Registered: ‎11-21-2012
My Device: developer and non blackberry user
My Carrier: 919988540758

Re: Blackberry webworks send sms callback

Is there any way that I can handle this now

Developer
Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: Blackberry webworks send sms callback

I don't think so since if the message doesn't even leave the phone, you wouldn't know and if the user receives a failure message, you wouldn't be able to parse it properly given what you're able to read from it.
--
Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.
Highlighted
Trusted Contributor
Posts: 118
Registered: ‎03-06-2013
My Device: Blackberry Z10
My Carrier: Airtel

Re: Blackberry webworks send sms callback

blackberry.message.sms.send(data, "+919988540758"); , in which blackberry phone r u trying to use this webworks API, is it on Blackberry10 or lesser version? please let me know.

when i try to add the sms feature id in config.xml for BB10 it gives an error.

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev