iPhone — setting up alarms with Shortcuts
iOS does not give apps the right to read text messages directly. That is why the Hätäkeskus (Emergency Response Centre) message is forwarded to Tilannekartta with a personal webhook address and a Shortcuts automation.
The automation sends the message to Tilannekartta's server, which sends an alarm notification to your phone. That is why the iPhone needs a network connection at the moment of the alarm.
The version is shown under Settings → General → About → iOS Version. Until you choose, the page shows the instructions for both versions.
Video
The whole setup on video: Fire brigade alarm on iPhone: setting up the Shortcuts automation (YouTube)
The videos were recorded on iOS 18. On iOS 27, creating the automation is different, so follow the iOS 27 instructions in step 3.
Save all the alarm numbers used by the Emergency Response Centre on your phone under the same contact, for example named Hätäkeskus. The automation runs only for messages from this contact. If a number in use is missing, an alarm from that number is not forwarded to Tilannekartta.
The address is a personal key for forwarding your alarms. Do not publish it or send it to others. If the address has ended up in the wrong hands, choose Address leaked? Create a new one on the iOS setup card. The old address stops working immediately, so copy the new address into the automation right away.
1. The Emergency Response Centre's numbers
In the ready-made shortcut for iOS 27, the senders are the numbers 0400 112 326 and 0400 112 327, so you do not need to create a contact. Still check from earlier alarm messages that your own alarms come from these numbers. If an alarm has come from another number, you add it in step 5 of section 3.
Look up the numbers from earlier alarm messages sent by the Emergency Response Centre. Create a contact named, for example, Hätäkeskus and add every alarm number in use under the same contact.
This step is required: iOS 17 and later need a contact as the sender filter for the Message automation.
No national list of numbers has been added to this guide, because no verified list of the sender numbers of alarm messages was found in public official sources. Check on your phone the sender of every alarm message you have received before, or confirm the numbers with your own fire brigade's admin or the rescue services.
Do not assume the sender is 112. It is the official number for receiving emergency calls and messages, not a sender number of outgoing alarm messages verified in this guide.
Choose the Hätäkeskus contact in the Message automation's trigger (iOS 27: When I get a message). No sender field is added to the POST request's JSON body.
2. Prepare Tilannekartta
- Open Settings → Fire brigade and turn on fire brigade alarms.
- Allow push notifications for Tilannekartta.
- Scroll to the iOS setup (Shortcuts) card and choose Copy URL. If the card has an Allow notifications button, press it first. If the card says Preparing the address…, wait a moment. If the card says Could not get the address from the server, check your network connection and press Try again. The app does not show the address as text because it is private.
Readiness, below the fire brigade alarms switch, shows whether notifications, sounds and critical alerts are allowed and whether the webhook address is ready. iOS does not tell the app whether the Shortcuts automation exists, so check it yourself in Shortcuts.
For a station channel member, Readiness may have the row Station channel alarm. It tells you that the station channel alarm does not ring on this iPhone: the station channel rings only on iOS 27, so on an older iOS the alarm comes only through the shortcut. Update iOS. If the row says the iOS version could not be checked, reopen the app.
If an Apple Watch is paired with the phone, Readiness also has the row Apple Watch: when the phone is locked and the watch is on your wrist, iOS directs the alarm to the watch and the phone does not ring, so turn off Tilannekartta's notifications on the watch (Watch app → My Watch → Notifications → Tilannekartta → Custom → Notifications Off) and press Done.
Alarm method (station channel members)
If you belong to a station channel, the card has the choice Alarm method:
- Station channel: when another member's phone receives the Emergency Response Centre's message and opens the station channel, the alarm also rings on this iPhone without your own automation.
- Shortcut: the alarm comes only through your own automation.
If you do not choose, the server decides at the moment of the alarm: the station channel rings when the station has an Android member with fire brigade alarms on. If your own shortcut has worked within the last 14 days, the station channel does not ring the same alarm a second time. Your own choice Station channel overrides these rules. Tap the option you want once, even if it already looks highlighted; that saves the choice.
The station channel then always rings, also when your own shortcut works. If the Hätäkeskus automation is still in use, the same alarm rings twice. Delete the automation from Shortcuts.
3. Create the automation
iOS 27
The ready-made shortcut contains the trigger and the alarm numbers. All you need to do is paste your own webhook address and turn the automation on.
- On Tilannekartta's iOS setup card, press Add the ready-made shortcut. The app copies your webhook address and opens the ready-made shortcut. Press Add Shortcut.
If the button is not shown, copy the address following step 2 (Copy URL) and open the shortcut here: Open the Tilannekartta shortcut - In Shortcuts, open the added shortcut Tilannekartta vpk-sms. In the Get Contents of URL action, tap the text LISÄÄ_OSOITE_TÄHÄN (add address here), delete it and paste the address you copied in its place.
- Turn the automation on. Tap the arrow on the right of the trigger When I get a message that. Turn Automation on and keep Ask Before Running off. A shared automation always arrives turned off, so without this step alarms do not get through.
- If your alarms come from a number other than 0400 112 326 or 0400 112 327, tap Hälytys in the trigger and add the number.
- Save by pressing Done.
If an old, self-made Hätäkeskus shortcut is still in use, delete it so the same alarm is not sent twice.
Build the shortcut yourself
- Open Shortcuts: in Tilannekartta, press Settings → Fire brigade → iOS setup (Shortcuts) → Open Shortcuts, or open the Shortcuts app from the home screen.
- Press + and create a new shortcut.
- At the start of the shortcut, add the trigger When I get a message and, in the Sender field, choose the contact where you have saved all the Emergency Response Centre's alarm numbers.
- Make sure the trigger runs immediately without confirmation: choose Run Immediately, or if you see the switch Ask Before Running, keep it off.
- Add the action Get Contents of URL and paste the webhook address copied from Tilannekartta into the URL field.
- Change the method to POST and the request body to JSON.
- Add the key
bodyand choose the trigger's variable Message as its value. Do not choose Shortcut Input. On iOS 27 it is empty in an automation, and the alarm does not get through. - Add the action Stop This Shortcut as the last in the chain and save by pressing Done.
So the chain is: When I get a message → Get Contents of URL → Stop This Shortcut, and the JSON body has only one field: body → Message.
The row Receive: No at the top of the shortcut concerns the share sheet, and you do not need to change it.
Open the Hätäkeskus shortcut and check the value of the body field. If the value is Shortcut Input, change it to the trigger's variable Message.
iOS 26 and earlier
The pictures are from iOS 18. Tap a picture to enlarge it.
- Open Shortcuts: in Tilannekartta, press Settings → Fire brigade → iOS setup (Shortcuts) → Open Shortcuts, or open the Shortcuts app from the home screen.
- Choose Automation → + → New Automation.
- Choose Message as the trigger.
- In the Sender field, choose the contact Hätäkeskus.
- Choose Run Immediately and press Next → New Blank Automation.
- Add the action Get Contents of URL.
- Paste the webhook address copied from Tilannekartta into the URL field.
- Change the method to POST and the request body to JSON.
- Add the key
bodywith the automation's variable Shortcut Input as its value. - Add the action Stop This Shortcut as the last in the chain.
- Save by pressing Done.
So the JSON body has only one field: body → Shortcut Input.
Why Stop This Shortcut
Stop This Shortcut prevents iOS from showing an extra Done window with the server's response after every alarm. It is needed on all iOS versions.
4. Test
In Tilannekartta's fire brigade settings, press Readiness → Sound test → Test alarm. This checks the app's own alarm screen and sound.
You do not need to send a test message. Alarm message detection is checked automatically: if the shortcut sends a faulty request to the server, Tilannekartta tells you.
When Ring in silent mode and Do Not Disturb is on and the VIRVE tone or the default sound is chosen, the test rings as a critical alert at the chosen volume. If that fails, the app tells you, and the test rings at the phone's ringtone volume. Still confirm that the alarm gets through silent mode with an alarm that comes through Shortcuts.
Alarm sound and silent mode
Choose the sound under Settings → Fire brigade → Alarm sound:
- VIRVE alarm tone (default) rings through silent mode and Do Not Disturb when the switch Settings → Fire brigade → Silent and Do Not Disturb → Ring in silent mode and Do Not Disturb is on. The switch is on by default and uses iOS Critical Alerts. They bypass silent mode and Do Not Disturb together, so the iPhone has one switch and Android two.
- Default sound is iOS's own notification sound. It also rings through silent mode and Do Not Disturb when the switch is on.
- Vibration only brings the alarm notification without sound.
When the switch is off, both the VIRVE tone and the default sound follow the phone's mode. The change applies immediately also to alarms arriving in the background, and the webhook address does not need to be copied again.
Silencing from the map
When Fire brigade alarms are on, there is a bell button on the right edge of the map. Tap it and choose 1 h, Until 7 am or Until further notice. The button turns the Ring in silent mode and Do Not Disturb switch off for the chosen time, and a notice tells you until when.
- While silenced, the button is orange and the bell is crossed out. Tap it, and the switch turns back on immediately.
- A time-limited silence ends by itself, even if the app has been closed. Until 7 am means the next 7:00 Finnish time.
- The silence is saved on the server, because an alarm arriving in the background is built there. Without a network connection, the alarm still rings through silent mode until saving succeeds. If restoring cannot reach the server, the app tells you and tries again the next time you open it.
- The button is moved with a long press like the other map buttons.
Volume
Under Settings → Fire brigade → Volume you choose the alarm sound's volume during the day and at night.
- The level applies to the VIRVE tone and the default sound when Ring in silent mode and Do Not Disturb is on. When the switch is off or Vibration only is chosen, the alarm rings at the phone's ringtone volume, and the sliders are not in use.
- Full volume is on by default: the alarm rings at 100% volume. When you turn it off, you choose the level with a slider. iOS does not tell apps the ringtone volume, so the level cannot be set automatically to follow the ringtone.
- Quieter at night is off by default. When you turn it on, night time is 22:00–6:00 and the level 30%. The times are Finnish time, also when you are abroad.
- The lowest level is 10%.
- The setting is saved on the server, because an alarm arriving in the background is built there. If saving fails, for example without a network connection, the settings show a warning and a Try again button. Until then, the background alarm rings at the previous volume. The app also retries saving the next time you open it.
- The level applies only to the alarm. The phone's own volumes do not change.
Tilannekartta reports a faulty shortcut
If the shortcut sends the server a request from which the alarm message cannot be forwarded, you get an ordinary notification from Tilannekartta that starts with the words Alarms are not getting through. The notification is not an alarm: it does not ring through silent mode and does not open the alarm screen. The same notification comes at most once a day, and only when fire brigade alarms are on.
| Notification title | Fix in the shortcut |
|---|---|
| The shortcut does not send a JSON body | Open Get Contents of URL and choose Request Body: JSON (not Form or File). |
| The shortcut is missing the body field | The JSON field must be named body in lowercase. |
| The shortcut sends an empty message | iOS 27: choose the trigger's variable Message as the value of the body field, not Shortcut Input. iOS 26 and earlier: the value is Shortcut Input. |
| The shortcut's body field is the wrong type | Choose Text as the field's type and a variable as its value (iOS 27: Message). |
No test message is needed after the fix. If the fault continues, the notification comes again on the next faulty request, at most once a day.
You did not change your shortcut? The notification goes to the owner of the webhook address, not to the phone that sent the faulty request. If someone else, for example another firefighter, has copied your address into their own shortcut, their fault shows up for you. Choose Address leaked? Create a new one on the iOS setup card and copy the new address into your own shortcut. Everyone must copy the address from their own Tilannekartta.
The notification does not cover all faults. It does not come if the automation does not run at all, the webhook address is wrong, or the message contains text other than the alarm. If no alarms come and no notification is shown, see The iPhone automation does not run.
If the automation stops for confirmation
Open the automation and make sure it runs immediately without confirmation. The choice must be Run Immediately. If iOS 27 shows the switch Ask Before Running, keep it off. Also make sure the Get Contents of URL action has permission to use the network.