Commit graph

5860 commits

Author SHA1 Message Date
Jorge Martin Espinosa
96e2f882a2 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
Benoit Marty
e9ca0a79e9 Sync strings. 2026-03-16 17:36:13 +01:00
Benoit Marty
afa1a42d92 canEnterRecoveryKey -> canUseRecoveryKey 2026-03-16 17:21:19 +01:00
Benoit Marty
b5830f5016 Update wording from "Enter recovery key" to "Use recovery key" 2026-03-16 17:19:49 +01:00
Benoit Marty
0fbed400eb Sync string again. 2026-03-16 14:54:06 +01:00
Benoit Marty
2e77502084 Fix issue in pattern 2026-03-16 10:32:33 +01:00
bmarty
3a0e01b63d Sync Strings from Localazy 2026-03-16 00:42:32 +00:00
ganfra
6414d74c40 Simplify ShowLocationState 2026-03-13 18:41:32 +01:00
ganfra
9b98a47941 Use localized string instead of hardcoded 2026-03-13 18:41:13 +01:00
ganfra
91c46ec971 Remove duplicate location content and reorder Live mode 2026-03-13 15:50:33 +01:00
ganfra
83832a38f9 Fix stability 2026-03-13 15:48:56 +01:00
ganfra
249d45ce04 Fix wrong dependency 2026-03-13 15:08:17 +01:00
ganfra
7c6a5638ad Fix some existing tests after changes 2026-03-13 10:18:28 +01:00
ganfra
02b3c61edc Fix quality! 2026-03-12 21:12:52 +01:00
ganfra
cdc773dab1 Remove hardcoded string 2026-03-12 15:58:27 +01:00
ganfra
81c7656125 Merge branch 'develop' into feature/fga/live_location_sharing_setup 2026-03-12 12:48:55 +01:00
ganfra
30919dcff4 Rename ShowLocationEvents -> ShowLocationEvent 2026-03-12 12:47:52 +01:00
ganfra
089b0cd847 Disable live location sharing for now (nothing done) 2026-03-12 12:40:10 +01:00
ganfra
fb775833c7 Code cleanup 2026-03-12 12:35:46 +01:00
ganfra
8274ef220d Fix and add tests related to location 2026-03-12 12:31:51 +01:00
ganfra
392fa9de9b Add Constraints check for permissions and GPS check 2026-03-12 11:53:36 +01:00
ganfra
7b305e34ef Set LocationShareRow max lines to Text components 2026-03-12 10:29:20 +01:00
ganfra
e664fb0a61 Make sure zoom is at least DEFAULT_ZOOM when following user position 2026-03-12 10:28:36 +01:00
Benoit Marty
41c337668f Improve preview by adding a background color. 2026-03-11 15:43:15 +01:00
Benoit Marty
4c8ec04954 Iterate on file attachment rendering in the timeline. Closes #6319 2026-03-11 15:30:15 +01:00
ganfra
22a2bba354 Fix previews 2026-03-10 21:48:54 +01:00
ganfra
b284984dad Check location is enabled 2026-03-10 21:48:37 +01:00
Jorge Martin Espinosa
f77098ed47 Add network constraints for fetching notifications with WorkManager (#6305)
* Add `isNetworkBlocked` and `isInAirGappedEnvironment` to `NetworkMonitor`.

* Improve the DI of `SyncPendingNotificationsRequestBuilder` to simplify its usage.

* Only update `isInAirGappedEnvironment` in `DefaultNetworkManager` if the current build is an enterprise one.

* Add network constraints to `DefaultSyncPendingNotificationsRequestBuilder` based on the air-gapped status.

* Add a feature flag to disable the new check, in case it doesn't work as expected.
2026-03-10 12:44:31 +00:00
ganfra
60b262a19e Fix compilation 2026-03-09 21:19:57 +01:00
ganfra
cbec9dbe2c Start implementing location shares sheet content 2026-03-09 20:54:02 +01:00
ganfra
91626bd217 Start cleaning up location code 2026-03-09 20:54:02 +01:00
ganfra
d53db78856 Use android.graphic.canvas to create proper bitmap 2026-03-09 20:54:02 +01:00
ganfra
4704a6fc2a LocationPin : disable hardware rendering if needed 2026-03-09 20:54:02 +01:00
ganfra
3cce8caec4 Introduce LocationPinMarkers composable 2026-03-09 20:54:02 +01:00
ganfra
046d135e4b Introduce LiveLocationContent for the timeline (needs sdk) 2026-03-09 20:54:01 +01:00
ganfra
f4bf596e3b Start using LocationPinMarker in Share and Show locations 2026-03-09 20:54:01 +01:00
ganfra
ec1d6ebabb Add current user to ShareLocationState 2026-03-09 20:54:01 +01:00
ganfra
f6c1ad47d7 Fix MapBottomSheetScaffold paddings 2026-03-09 20:54:01 +01:00
ganfra
a6e31b5c45 Use ListItem.onClick method 2026-03-09 20:54:01 +01:00
ganfra
b4cf8c274e Make sure we can display both Live and Static locations in ShowLocation 2026-03-09 20:54:01 +01:00
ganfra
222b9f0c9e Raname UserLocation to UserLocationPuck 2026-03-09 20:54:01 +01:00
ganfra
a240f69aff First iteration using maplibre-compose 2026-03-09 20:54:01 +01:00
ganfra
29f9640053 Location accuracy should be nullable 2026-03-09 20:54:01 +01:00
ganfra
7472f889cf Allow picking duration for the live location share 2026-03-09 20:54:01 +01:00
ganfra
a129d1f9ca Add share live location item 2026-03-09 20:54:01 +01:00
ganfra
add737b646 Rename ShareLocationEvents -> ShareLocationEvent 2026-03-09 20:54:01 +01:00
ganfra
8c64f704cb Rename send location to share location 2026-03-09 20:54:01 +01:00
Valere Fedronic
477c482810 Merge branch 'develop' into valere/rtc/voice_call 2026-03-09 17:18:55 +01:00
ElementBot
2ad55f4bc6 Sync Strings (#6302)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2026-03-09 10:38:07 +01:00
Jorge Martin Espinosa
2d3e59912a Add code to help debugging the saved nav state graph (#6295)
* Add code to help debugging the saved nav state graph: this would help us diagnose the `TransactionTooLargeException` reports we've been seeing for months.
2026-03-06 14:44:30 +00:00