cactuscraig wrote:This code on my iPhone 4 brings up the SMS window:
- Code: Select all
<html>
<head>
<meta name = "viewport" content = "initial-scale = 1.0, user-scalable = no" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="NKit.js"></script>
<script type="text/javascript">
function onPageShown(caller)
{
if (caller!="") //I don't care what the caller is really, tab, nav or window - just open the SMS window
{
var sendmessage = new NKSMSComposer();
sendmessage.setRecipient('93938732762');
sendmessage.show();
}
}
</script>
</head>
<body>
</body>
</html>
Having the same problem. When running your code nothing happens. No SMS view, no errors, no nothing...
** UPDATE **Running the same code in simulator brings up an alert "This device is not configured to send messages" so I'm guessing it's calling the right thing, but on actual device still nothing happens....