Lesson 7 ยท about 35 minutes
Make it feel like an app
Small details make the difference between 'a website' and 'an app': nothing hidden under the clock, buttons big enough for a sleepy thumb, pop-ups you can swipe away, and an undo for every mistake. Then reminders that arrive even when the app is closed, and what else a phone lets a web app do.
Safe areas, big tap targets, swipe-to-close pop-ups, visible buttons, undo, reduced motion and dark mode, each asked for in a sentence. Then notifications, and the other phone features that work on iPhone and Android.
You'll know most of this already. The useful part is what real use taught us: safe areas so nothing hides under the clock, big tap targets, sheets that swipe closed, visible buttons instead of overflow menus, undo after every save, and respecting reduced motion and dark mode. Then reminders with Web Push, sent on a schedule by your Worker, and a clear list of which phone features work on iPhone and Android.
Clear of the clock, big where it matters.
What you'll make
- An app that sits properly on any phone
- Big, obvious buttons for the main things
- Pop-ups that swipe away
- Undo for every save
You'll need: an app on your home screen.
Nothing under the clock
On an installed app, the top of the screen is shared with the clock and battery, and the bottom with the home bar. Without care, your header slides underneath.
viewport-fit=cover in the viewport meta, then padding with env(safe-area-inset-top/bottom).
Buttons made for thumbs
The thing people do most should be the biggest button, within easy reach. Everything you tap should be at least about a fingertip wide (44 pixels).
Pop-ups you can swipe away
On a phone, people expect to drag a pop-up down to close it. Try it:
Drag the sheet down to close it.
Drag the sheet down past a little way, or flick it, and it closes. A small drag springs back.
Visible buttons, not hidden menus
A real example: cancelling a running feed timer was behind a small โฏ menu, then a sheet, then a confirm. Three steps, easy to miss. It became one visible "Cancel feed" button, with one question whose safe answer is "Keep timing".
Undo after every save
Mistakes happen, especially with one hand. After every save or delete, a small message offers Undo, and for things you log late, quick "Earlier?" choices like "10 minutes ago".
Calm motion, and dark mode
Animation should show something real happening, and stay out of the way. Some people turn motion off in their phone settings, and some use dark mode at night: your app should follow both.
A new screen broke the layout of an old one
Reminders that arrive
Notifications are the feature that most makes a web app feel like a real app. A server sends them, so they arrive even when the app is closed: "a feed is due", "your lesson is at 4pm", "someone commented".
A reminder on the lock screen, and a badge on the icon. On iPhone, both need the app added to the home screen first.
Your agent sets up a small schedule on Cloudflare (every few minutes) that checks what's due and sends each reminder once. It works on the free plan.
Under the hood: Web Push with VAPID keys kept as Worker secrets, encrypted with Web Crypto so no Node libraries are needed. A Cron Trigger sends what's due, a sent-log stops anything going twice, and phones that have gone (a 404 or 410) are removed.
Lessons learned from a feeding log that sends reminders day and night:
- Ask at the right moment. Only after someone taps "Turn on reminders", never when the app opens. On iPhone, the question has to come straight after the tap.
- Say why it isn't working. If someone's in Safari rather than the home-screen app, tell them to open it from the home screen instead of showing a button that does nothing.
- Keep private things off the lock screen. "A new note" is fine; the note itself isn't.
- Be honest about limits. Reminders can arrive a few minutes late, and Focus or Sleep can silence them. Say so in Settings, so nobody relies on them alone.
The button says notifications are blocked
Reminders stopped after we changed something
What else a phone can do
Reminders are one of many app features a web app can use. Here's what works today on each phone:
| Feature | iPhone | Android |
|---|---|---|
| NotificationsReminders and alerts, even when the app is closed. | Yesonce on the home screen | Yes |
| Badge on the iconA number on the app icon, like unread messages. | Yesonce on the home screen | Yesa dot, while a notification is unread |
| Works offlineOpens and saves with no signal, then syncs. | Yes | Yes |
| Keep the screen onWhile a timer or a recipe is showing. | Yes | Yes |
| Share outSend a link, photo or file to any app. | Yes | Yes |
| Share inAppear in the phone's share menu to receive things. | NoNo | Yes |
| LocationWhere you are, while the app is open. | Yes | Yes |
| Camera and microphonePhotos, video, voice notes, scanning. | Yes | Yes |
| Face ID or fingerprint sign-inPasskeys instead of passwords. | Yes | Yes |
| Apple Pay or Google PayPay in a tap. | Yes | Yes |
| Lock-screen controlsPlay, pause and skip from the lock screen. | Yes | Yes |
| SpeechRead aloud, and dictation. | Yes | Yes |
| Motion and tiltSteps, shakes, which way the phone is held. | Yes | Yes |
| VibrationSmall buzzes for taps and alerts. | NoNo | Yes |
| Sync in the backgroundFinish sending after the app is closed. | NoNo | Yes |
| App shortcutsLong-press the icon for quick actions. | NoNo | Yes |
| Bluetooth and NFCTalk to nearby devices and tags. | NoNo | Yes |
Not possible for web apps: home-screen widgets, tracking location in the background, running all the time in the background, and being found in the App Store. On Android, a web app can be listed on Google Play.
iPhone support from firt.dev's iOS web app notes, checked November 2026. This changes with each iOS release; your agent checks before promising a feature.
Like notifications, location and the camera ask permission only when someone taps something that needs it.
Did it work?
Tick these off. They're saved in this browser, so you can come back later.
- Nothing hides under the clock or the home bar
- The main button is big and easy to hit
- Pop-ups close with a swipe down
- Every save and delete can be undone
- A reminder arrived on my phone, and I can turn it off