Text messages
Notifications can reach people by text as well as by email. Four separate things have to be true before anybody is texted, and none of them is on by default:
- Your company has switched the app on — Settings → Apps → SMS notifications.
- You have connected a provider — Settings → Integrations → SMS.
- The person has given a mobile number and verified it — their own Preferences screen, where a code is texted to the number and typed back.
- The person has chosen what to be texted about — the same screen.
That is deliberate. A text costs money per message and interrupts somebody at a time nobody chose, so each of the four is a decision by the person it affects.
Two of them are not ours to relax. Verifying the number and observing quiet hours are carrier requirements, not politeness, and the sections below say what they mean for you.
Connecting a provider
Twilio is what most distributors already have. It tells you what happened to each message and keeps the opt-out list this product honours. You need the Account SID, the auth token, and either a sending number or a Messaging Service.
Amazon SNS is cheaper per message and quieter — it confirms a message was accepted rather than that it arrived. If your deployment already runs on AWS, leave the keys empty and it uses the role it runs as.
The credentials are checked against the real service before anything is stored, and saving them does not send a test message to anybody.
What people have to do themselves
Nobody can be signed up for texts by somebody else. On Settings → Preferences each person can:
- give a mobile number, and
- switch on the notification types they want texted.
A number is checked when it is saved. Three things get refused, and the message says which:
- a number that does not exist, even if it looks right;
- a number with no country code, when we cannot tell which country to assume;
- a landline — a text to one is accepted, charged for, and never read by anybody, so it is better refused at the form.
Verifying a number
Saving a number is not finishing. Nothing is texted to a number until a code sent to it has been typed back, and the Preferences screen shows which state somebody is in.
This is a carrier requirement rather than a nicety. Carriers require a verified opt-in before a business sends messages, and the practical reason is the same one: one digit wrong and every text goes to a stranger, who replies STOP — against your sender, not against the person who mistyped.
How it works, from the person's side:
- Send me a code texts six digits to the number already saved. It is never sent to a number typed into the request, which is what stops the endpoint being used to bill you for texts to premium numbers somebody else owns.
- The code expires after ten minutes, allows five wrong attempts before it is thrown away, and only three codes an hour can be asked for. Hitting a limit is a wait, not a fault, and the message says so.
- Changing the number un-verifies it. A code proves that one number reached that person, and says nothing about the next one.
A verification code is an ordinary text through your provider, so it costs what a text costs. The Integrations screen counts it separately from notifications, so you can see what verification is costing you.
Verifying a number does not make it a way of signing in or resetting a password. That is deliberate: it would turn a SIM swap into a way into somebody's account.
Quiet hours
Settings → Preferences → Notifications → Quiet hours. The card is always
shown: whoever can change settings (setting.manage) edits it, whoever can read
settings sees it read-only, and everybody else is told to ask an administrator.
While the SMS app is off the card says that the window has nothing to hold back
yet, rather than disappearing.
This is a legal requirement in several countries, not a courtesy. The US TCPA's 8am-to-9pm window is the one most distributors will have heard of, and the penalty is per message. Other countries have their own. Set the window your regulator requires — this product ships with none set, because a default would be right in one legal regime and wrong in the others.
Three things worth knowing:
- The window is read in each recipient's own time zone, not your company's. A buyer in Chicago and a driver in Phoenix each get their own evening.
- A text in the quiet hours is not held for the morning — it is emailed instead, where the notification type allows it. A queue released at 08:00 would be a queue of texts about last night, and the person still wants to know now.
- Set both times or neither. One on its own is read as no quiet hours at all, so the screen refuses to save half a window.
One-time codes are the exception the type list already handles: a type marked as never substitutable is not emailed instead of texted. Nothing this product sends today falls in the quiet hours and in that category at once.
Stopping
Anybody can reply STOP to a message, which is a carrier-level block: the carrier stops delivering, and this product records it and stops asking.
That cannot be undone from here. It is the carrier's list, not ours. Somebody who wants texts again either sorts it out with their carrier or gives a different number.
Switching off individual types on the Preferences screen is the ordinary way to stop — STOP is for when somebody wants nothing at all.
What a text actually says
One sentence: what happened, and to sign in. Never any detail — a text lands on a lock screen anybody standing nearby can read, and they do not work for you.
When a text cannot be sent
Depends on why:
- the app is off, the person has no number, they have not verified it, or they replied STOP — nothing is sent and nothing is substituted. Nobody asked for a text in the first two cases, nobody has shown the number reaches them in the third, and in the fourth somebody said no.
- it is inside the quiet hours where that person is, no provider is connected, or the send failed — the notification goes by email instead, where the type allows it. Somebody still hears about the approval.
Every notification records which of those happened, so "why did they not get a text" has an answer.
What it costs
Whatever your provider charges, per message — and long messages are more than one message. A message containing an accented character costs more than twice one that does not, because of how carriers encode them; the usage figures on the Integrations screen count the real number.
There is no spending limit in this product. Set one on your provider's account.