mobile/how-does-a-push-notification-find-your-phone-when-the-app-is-closed.md
How does a push notification find your phone when the app is closed?
A push notification does not come from your app. Your phone keeps one connection to a service run by Apple or Google, and your app's server hands that service a message addressed to a device token.
This article follows the message hop by hop, explains what happens when the phone is offline (storing, expiry, merging), and lets you try the rules in a small simulator.

$ ls mobile/
see all →
mobile/two-phones-one-note-what-happens-when-edits-collide-offline.md
Two phones, one note: what happens when edits collide offline?
Phones lose signal all the time, so good apps keep a local copy of your data and sync with a server later. But what happens when two…
mobile/native-web-or-cross-platform-how-apps-get-from-your-code-to-a-phone.md
Native, web or cross-platform? How apps get from your code to a phone
Every app idea hits the same fork in the road. Build it native in Swift for iPhone and Kotlin for Android, build it for the web with HTML…
mobile/why-does-your-phone-ask-allow-this-app-app-permissions-explained.md
Why does your phone ask "Allow this app?" App permissions explained
Every app on your phone lives in its own sandbox: free to use its own files, but walled off from other apps and from personal things like…