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
Greyson Parrelli
31e1c6f7aa
Handle 428 rate limiting.
2021-05-05 16:47:13 -04:00
Greyson Parrelli
b053fbc4a7
Use Log.tag where appropriate.
2021-03-31 16:02:32 -03:00
Greyson Parrelli
0dea5eb779
Log both current and original priority for FCM messages.
2021-02-16 17:45:06 -05:00
Alan Evans
98cb6b457c
Periodic alarm to check for messages.
2021-02-10 15:21:04 -05:00
Greyson Parrelli
53177bf40e
Clean up unnecessary GCM stuff, improve FCM logging.
2021-02-01 20:56:25 -05:00
Greyson Parrelli
701e43c13d
Do a normal message fetch in FcmReceiveService#onDeleteMessages()
2021-01-29 18:35:44 -05:00
Greyson Parrelli
8e93bf9075
Create a core-util module with some common utilities.
2020-12-05 13:44:13 -05:00
Greyson Parrelli
6f53fdc02d
Clean up log statement in FcmFetchService.
2020-08-04 19:12:25 -04:00
Greyson Parrelli
c8dd4e5254
Added support for blurring faces.
...
Co-authored-by: Alan Evans <alan@signal.org>
2020-06-03 06:39:20 -04:00
Greyson Parrelli
c4ec0c9897
Handle devices disallowing start of FcmFetchService.
...
Some devices are overzealous with battery management and disallow
starting services even when they're in response to a high-priority FCM
message (which should be allowed). So in these situations, we just
fall back to what we were doing before.
2020-06-01 17:43:05 -04:00
Greyson Parrelli
a299bafe89
Create a new system for fetching the intial batch of messages.
2020-05-29 09:51:21 -04:00
Greyson Parrelli
fe25d941bb
Prevent FCM bottlenecking.
2020-05-29 09:51:20 -04:00
Greyson Parrelli
f099c3591c
Run PushProcessMessageJobs in parallel.
2020-05-14 11:22:28 -03:00
Greyson Parrelli
4d0dbbc6cd
Add ability to listen to jobs based on a filter.
2020-03-26 17:37:51 -04:00
Alan Evans
9ebe920195
Move all files to natural position.
2020-01-06 11:08:30 -05:00