I'm using the native call to location sms:xxxxxxxxxx and it doesn't work consistently. On the iPad, it seems to work, although it doesn't work on the iPhone (it launches the text message tool, but it doesn't pre-populate the phone number).
Is there anything I can do to ensure it's working on all devices?
Here's the javascript...
var str=localStorage.getItem('callnum');
var str=str.replace("(","");
var str=str.replace(")","");
var str=str.replace("-","");
var str=str.replace(" ","");
chyea ='sms:' + str;
window.location.href = chyea;