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
Galih
Posts: 28
Registered: ‎01-31-2012
My Device: 8520

I tried fror Invoke SMS

Dear All
I tried this code :
blackberry.launch.newSMS({ 'number':'7887', 'text':'GET Lagu10 ON'});

 has been work successfully in os 7 and os 6 (please see the screenshoot_success)


screenshoot_success.png

 

       When I apply the code into os 5 and lower, it didnt worked (please see the screenshoot_failed),

screenshoot_failed.png

 

 I just want the text "GET Lagu10 ON" displayed in message type field in OS5. It make me so confusing and disperate. Would you please send this to Blackberry Tester Team?

 

Thanks

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

Re: I tried fror Invoke SMS

This is likely due to the fact that the blackberry.launch API depends on XmlHttpRequest to transmit its request/response, and the implementation is different between WebKit (BlackBerry 6 and 7) and MIDP (BlackBerry 5.0).

 

Did you know there is an SMS API for WebWorks? https://developer.blackberry.com/html5/apis/blackberry.message.sms.html

 

This may allow you to do accomplish what you want on OS 5.0 +

 

blackberry.message.sms.send("GET Lagu10 ON", "7887");

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Contributor
Galih
Posts: 28
Registered: ‎01-31-2012
My Device: 8520

Re: I tried fror Invoke SMS

I have been try a sample SMS API,

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/blackberry-launch-newSMS-text-ca...

 

But a nothing happens, i neet code SMS for working in OS 5 and less.

<script type='text/javascript'>
blackberry.message.sms.send('GET Lagu10 ON', '3030');
</script>

 its same, nothing happens to send sms