element-x-ada/features
Jorge Martin Espinosa 8e46e68630
Add a foreground service with a wakelock for fetching push notifications (#6321)
* Create `PushHandlingWakeLock` to start a foreground service:

When receiving a push and scheduling the notification fetching, several problems can happen:

1. Some async operation is waiting for a timeout and it takes way longer than that to finish (i.e. timeout of 10s but it took 30s to advance).
2. The same, but when starting new coroutines. I've seen the time between scheduling a coroutine and it running sometimes take up to 1 minute.
3. Notification fetching can be scheduled immediately, but it can take a while to actually run because the OS understands the app is now in Doze.

Having a wakelock that runs as soon as the push handling starts fixes these: it continues the previous wakelock held by either Firebase or the UnifiedPush distributor.

* Acquire the wakelock as soon as we received the pushes in both receivers

* Also release the wakelock ahead of time if possible
2026-03-17 14:24:26 +01:00
..
analytics Sync string again. 2026-03-16 14:54:06 +01:00
announcement Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
cachecleaner Fix crash at startup 2025-11-19 09:34:17 +01:00
call Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
createroom Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
deactivation Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
enterprise Let enterprise build be able to use a different notification channel for noisy notification. 2026-02-11 11:57:01 +01:00
forward Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
ftue Sync strings. 2026-03-16 17:36:13 +01:00
home Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
invite Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
invitepeople Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
joinroom Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
knockrequests Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
leaveroom Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
licenses Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
linknewdevice Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
location Copyright: Add Element Creations Ltd. copyright 2025-11-10 11:05:05 +01:00
lockscreen Sync string again. 2026-03-16 14:54:06 +01:00
login Sync string again. 2026-03-16 14:54:06 +01:00
logout Sync string again. 2026-03-16 14:54:06 +01:00
messages Sync string again. 2026-03-16 14:54:06 +01:00
migration Simplify push notification flow by using locally stored values for pending pushes (#6258) 2026-03-03 15:14:36 +00:00
networkmonitor Add a foreground service with a wakelock for fetching push notifications (#6321) 2026-03-17 14:24:26 +01:00
poll Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
preferences Sync string again. 2026-03-16 14:54:06 +01:00
rageshake Sync string again. 2026-03-16 14:54:06 +01:00
reportroom Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
rolesandpermissions Sync string again. 2026-03-16 14:54:06 +01:00
roomaliasresolver Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
roomcall fix call state presenter test 2026-03-05 10:46:20 +01:00
roomdetails Sync string again. 2026-03-16 14:54:06 +01:00
roomdetailsedit Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
roomdirectory Sync Strings from Localazy (#5904) 2025-12-15 23:51:19 +01:00
roommembermoderation Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
securebackup Sync string again. 2026-03-16 14:54:06 +01:00
securityandprivacy Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
share Use ShareIntentHandler early to avoid distributing the whole intent (#6274) 2026-03-03 13:12:33 +00:00
signedout Sync Strings from Localazy (#5904) 2025-12-15 23:51:19 +01:00
space Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
startchat Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
userprofile Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
verifysession Sync string again. 2026-03-16 14:54:06 +01:00
viewfolder Update metro to v0.11.0 (#6245) 2026-02-25 16:19:47 +01:00