SteveLacy
Posts: 6
Joined: Fri Apr 20, 2012 11:54 pm

sms: location not working on all devices

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;

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

sms: location not working on all devices

The sms: protocol is supported differently on on various devices/mobile OSs. There are might be workarounds for a particular platform on the Internet.

Return to “Issues”