feat: Show Android notifications when patch and manager updates are available#217
feat: Show Android notifications when patch and manager updates are available#217
Conversation
c03b2c5 to
2836a01
Compare
2836a01 to
258cff9
Compare
|
Couldn't we use something like this? There are community servers hosted too so you don't have to necessarily self host one. |
|
A push notification service would be best. We can later figure out something. |
|
I have a Xiaomi and notifications still don't come when patches are released. I'll try disabling battery optimization for the manager. |
|
Would it be possible to add a bubble-style notification for important updates? For example, when a new Manager version is released, a floating bubble could appear (similar to Google Messages chat heads), ensuring the user actually notices it, with a clear “Dismiss” button above it. That would be really helpful, since critical updates could no longer be missed, especially by users who don’t regularly check the app or standard notifications. It could greatly improve visibility without requiring users to manually look for updates. |
0b9027a to
d1a1fb5
Compare
…ailable and functional on device
|
Ready to merge?) |
|
Yes I think so |
# app [1.8.0-dev.2](v1.8.0-dev.1...v1.8.0-dev.2) (2026-02-19) ### Features * Show Android notifications when patch and manager updates are available ([#217](#217)) ([dced36b](dced36b))


Overview
WorkManager with
PeriodicWorkRequestis unreliable for timely update notifications. On Android 6+ devices, Doze mode delays background tasks by hours. On Xiaomi, Samsung, Huawei, and OnePlus devices, aggressive battery optimisation systems kill background processes entirely. In practice, users often never receive notifications unless they open the app manually.What changed
Firebase Cloud Messaging (FCM) is now the primary notification delivery channel. High-priority FCM messages are delivered by Google Play Services - a system process exempt from Doze restrictions - ensuring notifications arrive even on devices with aggressive battery optimisation. WorkManager remains as a silent fallback for devices without Google Play Services.
Four-topic subscription model
Manager and patch notifications are independent, each with a stable and dev variant:
morphe_updatesmorphe_updates_devmorphe_patches_updatesmorphe_patches_updates_devA device running a dev manager build with prereleases OFF subscribes to both manager topics, since a stable release (e.g.
1.5.0) is a valid upgrade from a dev build (e.g.1.5.0-dev.1). The patches topic is determined solely by the "Use prereleases" preference, independent of the manager build variant.Settings UI
On devices with Google Play Services, the WorkManager check frequency selector is hidden - it is not relevant when FCM handles delivery. Devices without GMS retain the full interval configuration UI.
Release workflow
FCM notifications are sent automatically from GitHub Actions after each release.