4

This is dead easy for iOS, Android and even BlackBerry OS by just using the sms: prefix in your href attribute, like so:

<a href="sms:0046730123456">Send an SMS to +46 73 012 34 56</a>

This launches the SMS application with the number pre-filled on previously mentioned platforms. But on WP7.5 using Internet Explorer, we get an error saying that the URL scheme is not supported. Someone online hinted at smsto: but that didn't work either.

Fredrik Frodlund
  • 1,827
  • 1
  • 10
  • 13

1 Answers1

-1

You should use the javascript inject to get the link click event, the solution is like here.

Community
  • 1
  • 1
ellic
  • 798
  • 12
  • 28
  • I'm not sure what I would accomplish with this. How is this different from a regular anchor click? Mind you, we got tel: working just fine on IE in WP7.5. – Fredrik Frodlund Oct 18 '12 at 10:16
  • @FredrikFrodlund to make things much simpler, you can look into the navigating event of the webbrowser, then you can use "string url = e.Uri.ToString();", according to the url, you can judge if the click is cause by the "href="sms..."". – ellic Oct 22 '12 at 03:34
  • I'm sorry, I still don't get how this applies. The basic problem still lies with WP7 not understanding the sms: url scheme. Am I missing something? :/ – Fredrik Frodlund Oct 25 '12 at 09:16