# SMS number delimiter

**URL:** <https://forum.inductiveautomation.com/t/sms-number-delimiter/87484>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 18, 2024, 1:22pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484 "2024-03-18T13:22:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 18, 2024, 1:22pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/1 "2024-03-18T13:22:36Z")

</div>

Within perspective its possible to initiate a SMS message if a user is using a cell connected device; using something along the lines of:

```auto
    os = self.custom.source
    tel = "1234567890"
    mes = self.getSibling("TextArea").props.text

    if os == "iPhone":
        txt = 'sms://'+ tel +'/&body=' + mes
    else:
        txt = 'sms://'+ tel +'/?body=' + mes
    
    system.perspective.navigate(url=txt)

```

So my question is, if I want to send to multiple recipients, what delimiter should I used between the phone numbers? the usual suspects (,;.) fail.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 18, 2024, 1:34pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/2 "2024-03-18T13:34:29Z")

</div>

[This Stack Overflow](https://stackoverflow.com/a/36802039) post suggests it's possible using a certain syntax on iOS, but the [Apple docs](https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/SMSLinks/SMSLinks.html) for the scheme make no such mention.

It may be similar for Android.

In any case, this isn't an Ignition/Perspective feature you're leveraging.

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 18, 2024, 1:42pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/3 "2024-03-18T13:42:54Z")

</div>

some googling found me this,

Android:

```auto
sms:+15558675309,+15558675301?body=Text%20Here%20end!

```

iOS, macOS:

```auto
sms://open?addresses=+15558675309,+15558675301/&body=Text%20Here%20end!

```

> <https://stackoverflow.com/questions/4787905/sms-url-on-android/57317772#57317772>

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 18, 2024, 1:47pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/4 "2024-03-18T13:47:13Z")

</div>

Thanks Kevin

I saw that Stack Overflow post but no joy.

> [@Kevin.Herron](#):
>
> In any case, this isn't an Ignition/Perspective feature you're leveraging.

True, but its fun to try.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 18, 2024, 1:48pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/5 "2024-03-18T13:48:32Z")

</div>

Sure, just wasn't sure if you were aware and wanted to be clear that this isn't something we just didn't document or could implement as a feature request.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 18, 2024, 2:00pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/6 "2024-03-18T14:00:31Z")

</div>

Victor

ha, that's what I was missing, strange that google let me down

```auto
	os = self.custom.source
	tel ="1234567890,0987654321"
	mes = self.getSibling("TextArea").props.text
		
	if os == "iPhone":
		
		txt = 'sms://open?addresses='+ tel +'/&body=' + mes
	else:
		txt = 'sms://'+ tel +'/?body=' + mes
	
	system.perspective.navigate(url=txt)

```

Now works perfectly

I love this forum

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [March 18, 2024, 2:02pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/7 "2024-03-18T14:02:21Z")

</div>

i have some experience searching for browser uri stuff, as i have created some myself for use in one of my projects 😛

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [March 18, 2024, 2:14pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/8 "2024-03-18T14:14:15Z")

</div>

The Android code path looks the same as you already had - were you just testing on iOS before?

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [March 18, 2024, 3:15pm UTC](https://forum.inductiveautomation.com/t/sms-number-delimiter/87484/9 "2024-03-18T15:15:11Z")

</div>

Kevin

I started with iOS, I hadn't got as far as Android, but that just worked anyway. Lucky day.
