Reminders#
The app reminds without a server (#273): local notifications it schedules itself (decisions/mobile-app.md). Once at 08:00 on days tasks are due, and at a task's time when it has one (#478).
What it does#
- One reminder at 08:00 on every day with open tasks due, saying how many: "3 tasks due today" ("3 Aufgaben heute fällig"). A count rather than the descriptions, since it shows on the lock screen. Tapping it opens the app on the board.
- Only open tasks count. A completed task never reminds, nor one whose state this release does not know (#268) — a newer backend's state may be a closed one; an overdue task is the board's to show, and today's reminder is scheduled only until its 08:00 has passed.
- Rescheduled from what the backend holds, after every load and every change it agreed to, and replaced whole each time — the same view the board kept for offline reading comes from (board.md). So a task completed or moved never reminds. Replacements run one at a time, and one that would schedule exactly what is scheduled already does nothing.
- At a task's time (#478), when it has one, saying how many tasks are due then and when: "A task is due at 10:30" ("Eine Aufgabe ist um 10:30 fällig"), "2 tasks are due at 10:30". Again a count, not the descriptions, and tapping it opens the board. Tasks due at the same time share one reminder; on a day that skips an hour, a task in the skipped hour keeps its own, worded as the task has its time. A timed task still counts in its day's 08:00 summary. A floating one due at 08:00 has only the summary, as long as both move with the zone: not when a zoned task counts in that day's summary too, which then stays where it is. A zoned task due at 08:00 keeps its own reminder. A zoned task's summary is on the day of its moment on the phone's calendar.
- A floating task ("pills at 08:00") reminds at its time on the phone's clock, worded as the task has it.
- A task tied to a time zone reminds at its one moment, the
dueAtthe backend works out, so the app needs no time-zone database. Its reminder words that moment by the phone's clock: a 10:00 Berlin task reminds in New York with "A task is due at 04:00". - At most 60 reminders are scheduled, summaries and timed ones together, the nearest first: iOS keeps 64 pending notifications per app and drops the rest, and the next load schedules further ones.
- Signing out, deleting the account and a session that ended clear them (account.md).
- 08:00, and a floating task's time, follow the phone's time zone. Every reminder is worked out on the phone's clock, and the next load works them out again; a floating one also follows a change of zone by itself:
- On Android at once (#479): after a change of time zone, a receiver of the app's own moves every floating reminder -- the summaries and the timed tasks without a zone -- to its wall-clock time in the new zone, without the app being opened. After a flight, "pills at 08:00" is at the new zone's 08:00. A zoned task's reminder stays where it is: its moment is the same everywhere, and so does a summary that counts a zoned task, whose day is its moment's. A reminder whose new time is already over -- a flight east may land after it -- stays where it was, and comes late rather than not at all. One the app had already dropped as over -- this morning's 08:00 before a flight west -- is not there to move, and comes back only with the next load; nor does a floating 01:30 on the night the clocks go back pick the same of the two 01:30s as the app, which the next load puts right too. The receiver works beside expo-notifications' own service, not in it: should the app replace its reminders, or the phone reboot, at the very moment the zone changes, the next load is what puts them right. Changes that come quickly one after another are followed in their order, so the last zone is the one the reminders end up in.
- On iOS by the trigger itself (#517): a floating reminder is a calendar trigger with its day and time and no time zone, which iOS matches on the phone's current clock. A zoned one stays a fixed moment, and so does a floating one at a time the clocks skip, which a calendar trigger might never match. Seen on an iPhone on 2026-11-27, with the app closed throughout: after the zone was changed from Berlin to London, a floating reminder for 17:00 came at 17:00 London time, and the zoned control for 17:30 Berlin at 16:30 London. The 08:00 summary takes the same trigger when every task it counts floats, and was not tested itself. Nor was a flight east that lands after a reminder's time: unlike Android's, such a trigger lies in the past and most likely never comes, and the next load does not schedule a reminder that is over. The simulator cannot show any of this, since it takes the Mac's time zone.
The phone's time zone in the JavaScript engine#
Hermes, the app's JavaScript engine, reads the phone's time zone once and keeps it for every Date
until the app restarts; React Native does not tell it about a change. So after a change of zone the
board's "here" times, and the reminders the app scheduled at its next load, were still worked out
for the old zone, until the app was ended and started again (#526). Foundation, which
expo-localization reads the phone's zone from on iOS, caches it the same way.
A local Expo module of the app's own, mobile/modules/time-zone-cache/, drops both caches: Hermes'
through its resetTimezoneCache(), on iOS Foundation's as well. The app calls it each time it comes
back to the foreground, before the start over it does then anyway, so the board and the reminders
scheduled next take the new zone. It runs even while a form holds the start over back, so the board
is drawn in the new zone once the form is closed. Should it fail, the app carries on in the old
zone, as before.
Not covered: a change of zone while the app stays in the foreground the whole time. The next return to the foreground puts it right.
Asking for permission#
Not at the start. The first time the board shows an open task due today or later, a note above it asks "Get notified about due and changed tasks?", with Turn on and Not now. It is the offer of the pushes too (#277): iOS and Android have one notification permission per app, so one answer covers both (push.md), and on the builds with push it comes though nothing is due. A line under it says what comes and what may happen next (#336, #478, #277): At 08:00 on days tasks are due, and at a task's time if it has one: how many, not which. And when a task changes on another of your devices: which one. If your phone asks next, allow it. Without it, the system's question after Turn on came out of nowhere, on Android at least. "If", because Android 12 and older never ask; and it does not name the app, since the phone's question names the installed variant (TaskFest QA).
- Turn on brings up the system's own question where there is one — iOS, which asks only once, and Android 13 and later; allowed, the reminders are scheduled at once.
- Either answer is remembered on the phone, and the note is not shown again: Not now, and Turn on whatever the system's question then got — Android would let the app ask a second time after a first refusal, and the app does not. Should the phone fail to keep the answer, the note comes again at the next start; Turn on still brings up the system's question. A Not now from before the offer covered the pushes is the one exception: that offer is made once more (#277).
- Whether the app may still ask is read from expo-notifications'
canAskAgain, not itsstatus: on Android 13 and later notifications are off until allowed, so expo reportsdeniedbefore anyone was asked. - Without the permission — refused, or never given — nothing is scheduled and the app works as before. Turning them on later is the system settings' job.
On Android the reminders have their own channel, Due tasks, so they can be switched off there
without touching anything else -- the pushes' is Changed tasks -- and the status bar shows the
mark's single-colour form (mobile/assets/notification-icon.png).
On time, on Android#
Without exact alarms, Android may bring a reminder late: within an hour of its time, and later in
Doze or with the battery saver on
(alarms (opens in a new tab)). Which a phone
has depends on its Android, as expo-notifications schedules exactly whenever it may
(ExpoSchedulingDelegate):
- Android 11 and older: exact, with no permission.
- Android 12 and 13: exact, as
SCHEDULE_EXACT_ALARMis granted on install. - Android 14 and later: inexact, until the user allows exact alarms (Android 14 (opens in a new tab)).
Measured on the Android 14 emulator (#665): six reminders, due 20 to 150 minutes after they were scheduled, the app in the background. Awake is the screen on and the phone charging; Doze the screen off, unplugged, and Doze forced on. Each time is how late the notification was there; the script looked every 15 seconds.
| Due after | Inexact, awake | Inexact, Doze | Exact, Doze |
|---|---|---|---|
| 20 min | 14½ min | 15 min | 14 s |
| 45 min | 33 min | 16 min | 3 s |
| 70 min | 8½ min | 52 min | 8 s |
| 100 min | 60 min | 22½ min | 14 s |
| 130 min | 30 min | 54 min | 5 s |
| 150 min | 10½ min | 34½ min | 9 s |
Inexact, Android allowed itself three quarters of the time until the reminder, and an hour at most
(dumpsys alarm's window), and used most of it, awake as well. In two and a half hours of Doze
none came later than that. A phone that lies still longer, such as overnight before the 08:00
reminder, gets its maintenance windows ever less often
(Doze (opens in a new tab)), which the
emulator did not show. Exact, every reminder came on time.
Allowing them (#665) is done in the system settings: Apps → Special app access → Alarms &
reminders → TaskFest, where the permission the app declares, SCHEDULE_EXACT_ALARM, is switched
on and off. The app offers it once:
- A note above the board, Reminders may come late ("Erinnerungen kommen vielleicht zu spät"), once the reminders are allowed and exact alarms are not: right after Turn on, or at a load of the board on a phone whose reminders were on already. The board must hold an open task due today or later, as for the reminders' offer. A line under it says why: Without the permission to set alarms and reminders, Android may bring them up to an hour late, and later while the phone lies unused. Allow it in the setting that opens next.
- Open settings opens that setting for the app (expo-notifications'
requestExactAlarmPermissionsAsync); Not now does not. - Either answer is remembered on the phone, and the note is not shown again, as with the reminders' offer (decisions/mobile-app.md).
- Only on Android: whether exact alarms are allowed is read from
getExactAlarmPermissionsAsync, which says they are before Android 14 unless taken back; there the note never comes. iOS has nothing to offer.
Seen on the emulator:
- Allowed, reminders already scheduled stay inexact until they are scheduled again. The app
forgets what it scheduled at each return to the foreground (
mobile/src/Main.tsx), so the next load of the board schedules them anew. - After a restart of the phone they are still exact.
- Taken back, Android ends the app and drops every exact alarm, so no reminder comes until the app has loaded the board from the backend again, which schedules them inexactly.
Only a board loaded from the backend schedules reminders (#273): opened offline, the app shows the board it kept and schedules nothing.
Code and tests#
| Piece | Where |
|---|---|
| The rule: which days, which time, how many | mobile/src/reminders.ts |
| The platform: permission, channel, scheduling | mobile/src/notifications.ts (expo-notifications) |
| When they are scheduled, cleared and offered | mobile/src/TaskFestApp.tsx |
| Exact alarms on Android: the permission, the offer, and scheduling anew in the foreground (#665) | android.permissions in mobile/app.config.ts, createExactAlarmOffer in mobile/src/notifications.ts, mobile/src/TaskFestApp.tsx, mobile/src/Main.tsx |
| Moving them with the time zone, on iOS | calendarOf in mobile/src/notifications.ts, used by mobile/src/Main.tsx |
| Moving them with the time zone, on Android | mobile/plugins/android/TimeZoneChangedReceiver.kt, declared by mobile/src/timeZoneReceiver.ts, added by mobile/plugins/withTimeZoneReceiver.ts |
| Following the phone's zone in JavaScript (#526) | mobile/modules/time-zone-cache/, called from mobile/src/TaskFestApp.tsx |
reminders.test.ts covers the rule, notifications.test.ts the platform's use, and
TaskFestApp.reminders.test.tsx the app's, TaskFestApp.exactAlarms.test.tsx the offer of exact
alarms; TaskFestApp.timeZone.test.tsx that the zone is dropped on return to the foreground. On
the emulator, mobile/maestro/reminders/turn-on.yaml adds a task due tomorrow and turns the
reminders on, reminders/exact-alarms.yaml opens the setting for exact alarms from the note and
comes back without allowing them -- every other flow runs with them allowed, so the note does not
push the board's rows down -- and reminders/timed.yaml adds one due
tomorrow at 09:00 (#478). run-on-emulator.sh then checks that Android holds pending alarms of the
app's for 08:00 and for 09:00 in the emulator's time zone — any day's, since a run may cross
midnight. It then moves the emulator to Los Angeles and checks the alarms are at 08:00 and 09:00
there (#479): left where they were, they would be at midnight and 01:00, or an hour later in summer.
West, because a zone east of UTC could put tomorrow's 08:00 there before the moment of the check
late in the day, which the receiver rightly leaves alone; the emulator's own zone comes back
afterwards.