07-12-2012 01:00 AM
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)
When I apply the code into os 5 and lower, it didnt worked (please see the screenshoot_failed),
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
07-16-2012 01:10 PM
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/blackb
This may allow you to do accomplish what you want on OS 5.0 +
blackberry.message.sms.send("GET Lagu10 ON", "7887");
07-17-2012 02:30 AM
I have been try a sample SMS API,
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