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.
This commit is contained in:
Greyson Parrelli
2022-04-18 11:27:32 -04:00
committed by GitHub
parent 8cfc013960
commit e09ce4c820
4 changed files with 54 additions and 6 deletions

View File

@@ -14,6 +14,7 @@ public final class NotificationIds {
public static final int USER_NOTIFICATION_MIGRATION = 525600;
public static final int DEVICE_TRANSFER = 625420;
public static final int DONOR_BADGE_FAILURE = 630001;
public static final int FCM_FETCH = 630002;
private NotificationIds() { }