Why use it
- Notifications without Chrome. Push arrives through Firebase Cloud Messaging (FCM) in the app itself. On Vivo, Oppo and Xiaomi phones you only need to exempt this one app from battery limits, not the whole browser.
- Buttons on notifications: Mark read, Delete and Reply. Mark read and Delete work without opening the app.
- Mail links and sharing:
mailto:links and Share to Mailbox open a new message. - Polish: an animated splash screen, 120 Hz where the phone supports it, a status bar that matches the app, and a small haptic tick when a swipe reaches its action.
Set up
1
Add an Android app in Firebase
In the Firebase console (the same project the server uses), add an Android app with the package name
dev.amit.mail. Enable Google under Authentication, add the SHA-1 of your signing key (next step), and download google-services.json after adding the SHA-1.2
Create a signing key
3
Add three repository secrets
4
Allow the workflow to publish
In Settings > Actions > General > Workflow permissions, choose Read and write.
5
Build
Run the Android APK workflow from the Actions tab, or push a tag such as
android-v1.0. The signed mailbox.apk is attached to a new release.https://mail.amit.is-a.dev, change server.url in android-app/capacitor.config.json and BASE in android-app/native/MailActionReceiver.java before building.
How notifications work
- When mail arrives, the server sends a data-only high-priority FCM message to every saved phone, next to the Web Push it sends to browsers.
- The app’s own service builds the notification. While the app is open it stays silent and the list just refreshes.
- Mark read and Delete call
POST /api/push/actionwith the mail’s short-lived push token, which is bound to that one mail, so no sign-in is needed. - Reply and a tap open the mail in the app. A small tick of the same token opens it with no sync first.
- When nothing is unread, leftover notifications are cleared so the launcher badge goes away.
Updating
Web changes arrive by themselves. Native changes need a new release; install the new APK over the old one. A tool such as Obtainium can watch the releases page and update it for you.Troubleshooting
- No notification when the app is open: expected. The app refreshes instead.
- Sign-in fails: the SHA-1 of your signing key is missing in Firebase, or
google-services.jsonwas downloaded before it was added. Add it, download the file again and update the secret. - Nothing arrives: check that the server was redeployed with FCM support, that Firebase Cloud Messaging API is enabled for the project, and look for
FCM failedin the server log.
Copyright © 2025–2026 Amit Dutta