Reputation: 31
I can't figure out how to create an HTML link that will allow the dumping of multiple numbers into the Message app. I have tried separating by commas and semicolons without any luck. Please let me know if this is even possible, as I could not find anything about sending a text to multiple numbers on Apple's URL Scheme Reference page.
Upvotes: 3
Views: 2863
Reputation: 147
Try this:
<a href="sms:/open?addresses=12345678901,98765432109">Two Numbers, no message</a>
it should do the trick for iOS.
Upvotes: 5
Reputation: 2733
Apple's documentation on forming text links for iOS states that it will only accept single phone numbers, with no additional parameters (even though competitors support ?body= in the same fashion as a mailto: link works with ?subject=foo&message=bar). It would seem this also applies the same to anything more than one number, each of my tests in JSFidle yielded only the first number, and no number at all with a message specified. I recommend you adjust your development to either proceed through each message you wish to send, in sequence, or adjust for just the one available recipient.
<!-- works fine -->
<a href="sms:12345678901">Single Number, no message</a>
<br />
<!-- works for first number only -->
<a href="sms:12345678901,98765432109">Two Numbers, no message</a>
<br />
<!-- doesn't work at all -->
<a href="sms:12345678901?body=hello">Single Number, with message</a>
<br />
<!-- doesn't work at all -->
<a href="sms:12345678901,98765432109?body=hello">Two Numbers, with message</a>
Upvotes: 1