Alex Hart
736811393f
Upgrade Kotlin, AGP, Gradle versions and bring in kotlinx-serialization for use with navigation-compose.
2025-09-17 14:21:43 -04:00
Cody Henthorne
6379f9f453
Cancel may have messages notification from FcmJobService.
2025-08-06 15:49:25 -04:00
Greyson Parrelli
3571e22a79
Use different icon for 'fetching messages'.
...
Relates to #12904
2025-06-17 16:26:20 -04:00
Cody Henthorne
323697dfc9
Improve auth WebSocket lifecycle.
2025-03-19 10:48:31 -03:00
Greyson Parrelli
23c51273c0
Add log for 'you may have new messages' notification.
2025-03-03 09:51:59 -05:00
Greyson Parrelli
dc78d841c1
Swallow potential foreground service crash.
2025-02-20 16:25:41 -05:00
Greyson Parrelli
6112ee9bd3
Initialize AppDependencies if needed in AvatarProvider.
2024-09-13 10:51:30 -04:00
Nicholas Tinsley
9261c34213
Clean up registration java packages hierarchy.
2024-09-13 10:51:30 -04:00
Greyson Parrelli
d698f74d0b
Rename FeatureFlags -> RemoteConfig.
2024-06-24 15:04:02 -04:00
Greyson Parrelli
13f7a64139
Refactor FeatureFlags.
2024-06-24 15:04:02 -04:00
Greyson Parrelli
b6a4e1f145
Rewrite the AppDependencies system.
2024-06-05 15:46:00 -04:00
Clark
51e46db42d
Fail websocket drain if keepalive token is removed.
2023-09-13 13:28:43 -03:00
Greyson Parrelli
a7019b2e60
Rename PushNotificationReceiveJob -> MessageFetchJob.
2023-08-16 10:26:32 -04:00
Greyson Parrelli
5fa9a27ee0
Convert WebSocketStrategy.java -> WebSocketDrainer.kt
2023-08-16 10:26:32 -04:00
Greyson Parrelli
b07d675bb4
Remove BackgroundMessageRetriever and clean up old code.
2023-08-16 10:26:32 -04:00
Greyson Parrelli
7ac479b78a
Log server time offset in FCM log.
2023-08-10 15:29:02 -03:00
Clark
66792f2d56
Add heuristics for delayed notifications.
2023-08-01 15:51:31 -04:00
Clark
0fde404da8
Add you may have messages notification.
2023-07-19 17:12:19 -04:00
Clark
9af888a595
Refactor FcmFetchManager to make foreground service clearer.
2023-07-12 15:48:51 -04:00
Clark
13470fb0c3
Increase FCM push websocket timeout.
2023-06-30 12:41:00 -04:00
Clark
9e6f2336d1
Add push websocket fetch stats.
2023-06-30 11:07:05 -04:00
Clark
68042fc755
No longer call startForeground in onCreate.
2023-06-22 14:09:23 -04:00
Clark
e2a79394ab
Always background legacy FCM fallback.
2023-06-21 20:34:12 -04:00
Clark
08c661bb14
Fix foreground service start/stop race.
2023-06-14 14:42:08 -04:00
Clark
bf048e2a75
Dont block main thread when we try to stop FCM fetch service.
2023-06-07 14:12:35 -04:00
Clark
b540009ce6
Only call start foreground once from FCM.
2023-05-24 11:29:59 -04:00
Clark
8971ff9057
Fix for ForegroundServiceDidNotStartInTimeException for FcmFetchForegroundService.
2023-05-17 15:30:26 -04:00
Clark
534c5c3c64
Try not blocking main threads to start foreground service.
2023-05-17 15:30:26 -04:00
Clark
29796f51d7
Try calling startForeground in onCreate.
2023-05-05 12:48:53 -03:00
Greyson Parrelli
57e8684bb3
Always use a foreground service when processing high-priority FCM pushes.
2023-03-04 10:51:41 -05:00
Greyson Parrelli
33828439fb
Use the websocket for FCM fetches.
2023-03-03 10:40:55 -05:00
Cody Henthorne
fb0aa55cbb
Fix instrumentation tests by forcing channel id usage to init channels.
2022-12-16 15:22:04 -05:00
Greyson Parrelli
23804046c6
Always use new foreground service utils.
2022-11-30 17:10:36 -05:00
Greyson Parrelli
04b0c01015
Catch a foreground service start exception.
2022-10-07 18:45:11 -04:00
Nicholas Tinsley
b9f4dc3fe9
Specify exported status and PendingIntent mutability.
...
Also reduce shake sampling frequency, add coarse location permission.
Random things for targetSdk 32.
2022-09-28 11:33:35 -04:00
Cody Henthorne
286c340f01
Do not start service is non-urgent push.
2022-08-09 15:11:10 -04:00
Greyson Parrelli
692006dcd8
Be more defensive when starting the FCM foreground service.
2022-08-02 14:37:06 -04:00
Greyson Parrelli
a1d444fc19
Improve resiliance of FCM fetch.
2022-07-05 11:32:42 -04:00
Greyson Parrelli
523f9c7409
Be more resistent to android disallowing service starts.
2022-06-14 15:20:42 -04:00
Cody Henthorne
5df20d755a
Fix FCM not initialized crash.
2022-06-14 15:20:42 -04:00
Greyson Parrelli
a9bdc1abfc
Only stop the FCM foreground service if it was used.
2022-05-13 09:12:02 -04:00
Greyson Parrelli
c0db88960c
Make FcmFetchForegroundService stop itself.
2022-05-12 10:42:21 -03:00
Greyson Parrelli
9afeb206fc
Refactor FCM processing to improve use of foreground services.
2022-05-12 10:42:21 -03:00
Cody Henthorne
1a6bd3d3f2
Add VPN/metered connection status during FCM receives.
2022-05-06 11:47:57 -04:00
Greyson Parrelli
797c02e893
Improve reliability of launching FCM foreground service.
...
We were getting weird errors around the service not calling
startForeground() that I couldn't reproduce. I figure it must be
something with how we only sometimes start the FcmFetchService in the
foreground. So I think the safest thing to do is to just use
GenericForegroundService.
2022-04-26 11:22:01 -04:00
Greyson Parrelli
e09ce4c820
Use foreground services to process notification when appropriate.
...
Right now, the only condition is once every 3 minutes on Android 12.
This is ok because Android 12 will allow us (once every 2 minutes or
so) to start a foreground service, and it won't show it for the first 10
seconds. So we can kind of do it without any visual penalty.
2022-04-18 11:27:32 -04:00
Greyson Parrelli
057231b9c3
Update libsignal-client to 0.14.0
2022-03-17 12:12:56 -04:00
Greyson Parrelli
843ed24bbb
Introduce SignalDatabase as the main database entrypoint.
2021-11-18 12:36:52 -05:00
Greyson Parrelli
8aea20f147
Migrate local account data into SignalStore.
2021-11-17 16:14:26 -05:00
Cody Henthorne
3c6bed90db
Fix ANR by upgrading Firebase Messaging.
2021-06-18 15:10:16 -04:00