Add GroupId to PushNotificationReceivedJob

Pending message requests should probably be made sequentially.

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-04-16 12:22:05 -07:00
parent 8550b4b051
commit efcdb7eb66

View File

@ -24,6 +24,7 @@ public class PushNotificationReceiveJob extends PushReceivedJob implements Injec
public PushNotificationReceiveJob(Context context) {
super(context, JobParameters.newBuilder()
.withRequirement(new NetworkRequirement(context))
.withGroupId("__notification_received")
.withWakeLock(true, 30, TimeUnit.SECONDS).create());
}