Push notifications setup
Push is what makes a notification pop up on a member's phone or PC even when the app is closed. Heartisan sends it directly to Apple, Google and Microsoft — there's no relay service in between to pay for. All it needs is your app's own key for each platform, entered on Settings → Messaging.
How push reaches a device
Only Apple, Google and Microsoft can wake a closed app on their devices — there's no way around that, for anyone. So Heartisan keeps its own list of the devices your app is installed on, and when you send, it hands each notification to the right one of the three, signed with your key:
- Each time the app opens, the device tells Heartisan its push address. Nothing else is needed from the member beyond allowing notifications.
- When you send, Heartisan delivers to Apple (APNs) for iPhones and iPads, Google (FCM) for Android, and Microsoft (WNS) for the Windows app.
- If a platform says the app is no longer on a device, Heartisan drops that device from its list.
iPhone and iPad: APNs key
One Apple key works for every app in your Apple Developer team, and it never expires.
- In Apple Developer, open Certificates, Identifiers & Profiles → Keys and add a key with Apple Push Notifications service (APNs) ticked.
- Download the .p8 file — Apple only lets you download it once, so keep it somewhere safe.
- APNs key (.p8)
- Open the .p8 file in a text editor and paste all of it, including the BEGIN and END lines. Stored encrypted.
- Key ID
- The 10 characters shown next to the key in Apple Developer — also in the file name,
AuthKey_XXXXXXXXXX.p8. - Team ID
- Your Apple Developer Team ID, under Membership details. Also 10 characters.
Android: Firebase
Android push runs through Firebase Cloud Messaging (FCM). Setting it up produces two files that go to two different places, and both must come from the same Firebase project:
- google-services.json
- Uploaded under Store Credentials — it's baked into the app so the app knows which Firebase project to register with.
- Service-account JSON
- Pasted on Settings → Messaging — it lets Heartisan send to that Firebase project.
1. Create (or open) a Firebase project
- Sign in to the Firebase console with a Google account for your organisation.
- Click Add project, name it, and finish the wizard. Google Analytics is optional — you can skip it.
2. Register your Android app
- On the project overview, click the Android icon (Add app).
- For Android package name, enter your app's bundle ID exactly —
com.yourchurch.app. It must match the bundle ID in your store settings — a mismatch fails the Android build. - A nickname is optional, and the SHA-1 signing certificate is not needed for push — leave it blank.
- Click Register app, then Download google-services.json. (You can skip the SDK / Gradle steps the wizard shows next — we handle those.)
3. Upload google-services.json to the app
In the portal, go to Store Credentials → Firebase google-services.json and upload the file. This is what makes your built app register for push under your Firebase project.
4. Let Heartisan send
- In the Firebase console, open Project settings (gear icon) → Service accounts.
- Click Generate new private key and confirm — a JSON file downloads. Keep it safe; it grants send access.
- Open it in a text editor and paste the whole file into Android: Firebase service account on Settings → Messaging.
Windows: Microsoft Store
Only the Microsoft Store version of the Windows app can receive push — Windows ties it to the app's Store identity. You need two values from Partner Center:
- Package SID
- Your app → Product management → Product identity. It starts
ms-app://S-1-15-2-. - Client secret
- Your app → Product management → WNS/MPNS opens the app's registration. Add a client secret there and paste its value (not its ID). Secrets expire — note the date and add a new one before then. Stored encrypted.
Tapping a notification on Windows opens the app on the item it was about, the same as on a phone.
Each app has its own keys
The Firebase project and the Windows Store identity belong to one branded app. If you run more than one app, each needs its own. (The Apple key is the exception: one key covers every app in the same Apple team.)
Pictures in notifications
A notification can carry a picture — the image attached to the message, or, if you don't attach one, the linked event's or media item's own artwork. It shows when the notification is expanded on Android and iPhone, and as a banner image on Windows.
- No preparation needed. Images are scaled down automatically to stay under the size limit Apple and Google impose — past it, the picture is silently dropped and the notification arrives as text.
- iOS needs a small helper inside the app to fetch and show the picture. It is built and signed for you automatically, as long as your iOS signing goes through an App Store Connect API key.
- Tapping the notification opens the item it was about — the event, host or piece of media content — rather than a general inbox.
Urgent notifications
Some notifications are sent as urgent by themselves; there is nothing to switch on or tick. They are the ones waiting on a member or that can't wait:
- a rota slot or a follow-up that needs an answer;
- the children's team calling a parent from check-in;
- an invitation to a group conversation;
- "we are live now";
- the "your broadcast is showing nothing" warning to staff.
Announcements, broadcasts, Flows and everything else stay ordinary, so urgent keeps its meaning.
- iPhone
- Shown as Time Sensitive: it breaks through Focus and sits above ordinary banners.
- Android
- Sent on a high-importance channel called Needs your attention, so it pops up on screen and sits above ordinary notifications in the shade.
- In the app's bell
- An unread urgent message sits under an Urgent heading at the very top; requests still wait under Needs your answer just below.
Members can still turn any of it down in their phone's own notification settings (on Android the channel appears as "Needs your attention" under the app's notifications).
Per-app setup checklist
- iOS
- With an App Store Connect API key uploaded (recommended), the Push capability and provisioning profile are handled automatically at build time. Otherwise, enable Push Notifications on the app's Apple identifier and regenerate its provisioning profile yourself — before the app is rebuilt. Then enter the APNs key, Key ID and Team ID.
- Android
- Upload google-services.json under Store Credentials and paste the service-account JSON from the same Firebase project on Settings → Messaging.
- Windows
- Publish through the Microsoft Store, then enter the Package SID and a client secret.
Confirming it works
Check keys, under the key fields, checks what you've typed — before you save — and
notifies nobody. For each platform it first catches the common mistakes (a .p8 pasted without its
first or last line, the Key ID and Team ID swapped, google-services.json pasted where
the service account belongs, a service account from a different Firebase project than the app, a
Windows secret's ID instead of its value). Then it asks Apple, Google and Microsoft whether they
accept the keys, each in a way that can't reach a device. A green tick from all three means the keys
are right; anything else says what to fix.
- Install the app on a real device, sign in, and allow notifications when it asks.
- Save your keys, then enter that person's email under Send test push and press the button. It sends to their devices only and reports, per platform, how many were accepted — or exactly what Apple, Google or Microsoft objected to.
- Then send a real broadcast from Communication → Messages and check it lands.
Seeing who push reaches
The top of Communication → Messages → Message log shows how far push actually gets:
- Can get notifications
- The share of people with an account who have at least one phone or computer push can reach — the app registered, notifications switched on, and that platform's key entered.
- Notifications off
- People who have the app but have switched its notifications off on every device. Push can't reach them; email, text and the in-app inbox still can.
- No device
- People with an account who haven't opened the app signed in on a phone or computer.
- Opened, last 30 days
- Of the notifications Apple, Google and Microsoft accepted, how many were tapped open — and how long people typically take.
Below that: the devices by platform and app version, how many haven't been opened in 90 days, and four small charts — when people open notifications (by hour and by day, in your time zone), and how many devices were added and removed each week. Removals are mostly uninstalls, which makes the last chart an early sign of people drifting away. Each chart has Show as table.
Each message in the log shows its push figures too: accepted / devices, and how many were opened. Opening a row shows each person, with push reading opened once they tap it.
One person's devices
On a person's page, Administrators and Owners see a Notifications card listing each phone or computer their notifications go to: the platform, the app version, whether notifications are on or off there, when the app was last opened, and how many notifications they've opened on it.
- Send test sends to that one device and reports exactly what the platform said.
- Remove stops notifications to that device. If they open the app on it again while signed in, it comes back — it isn't a sign-out. For a lost phone, sign them out too.
- Devices that uninstalled the app, or that staff removed, stay listed for 90 days, greyed out, with the reason.
A device with notifications switched off doesn't count as reachable anywhere, so automations that choose the best channel go straight to email or text for that person.
Every device, installs and uninstalls
Communication → Messages → Notification devices (Administrators and Owners) lists every phone and computer in your organisation in one place, with whose it is. Search by name, email or app version; filter by platform, notifications on or off, devices not opened in 90 days, guests (the app used without signing in) or recently removed ones; and sort by last opened, name, platform, version or newest. Send test and Remove work as on a person's page; a guest's device can be removed but not tested, as there's nobody to address it to.
Installs & uninstalls shows the last 90 days as a timeline, with totals for the last 30:
- Installed
- The app was opened on a new device for the first time.
- Reinstalled
- A new device for someone whose previous one on the same platform was uninstalled.
- First recorded
- Devices seen in the first two weeks after recording began. Most are existing installs being counted for the first time, not new ones.
- Uninstalled
- Apple, Google or Microsoft refused a notification because the app is gone. That only happens when something is sent, so an uninstall appears after the next message. iPhones are dated by Apple; the rest by when it was found.
- Expired / removed by staff
- A Windows channel that lapsed (it comes back when the app is next opened), or a device someone removed here.
Troubleshooting
- "Apple refused the key" — the .p8, Key ID and Team ID don't belong together, or the key was revoked. Check all three came from the same key.
- "Google refused the service account" — the JSON is from a different Firebase project than the app's google-services.json, or its key was deleted in Firebase.
- "Microsoft refused the Package SID and secret" — the secret has expired or was copied by its ID instead of its value, or the SID belongs to another app.
- "No device registered" — the person hasn't opened the app since it was installed, isn't signed in, or declined notifications on their device.
- Windows never registers — only the Microsoft Store version can receive push; a copy installed any other way can't.
- Stopped after an app re-publish — a changed bundle ID, a new Firebase project or a new Store listing means new keys here to match.
Related
- Email, push & SMS setup — the rest of the Messaging settings.
- App store credentials & signing — the Apple, Google and Microsoft accounts these keys come from.
- Flows — send push automatically as part of an automation.