We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34b10db commit 9ffee54Copy full SHA for 9ffee54
app/src/main/java/to/bitkit/fcm/FcmService.kt
@@ -3,6 +3,7 @@ package to.bitkit.fcm
3
import android.os.Bundle
4
import androidx.core.os.toPersistableBundle
5
import androidx.work.OneTimeWorkRequestBuilder
6
+import androidx.work.OutOfQuotaPolicy
7
import androidx.work.WorkManager
8
import androidx.work.workDataOf
9
import com.google.firebase.messaging.FirebaseMessagingService
@@ -83,6 +84,7 @@ class FcmService : FirebaseMessagingService() {
83
84
"payload" to notificationPayload?.toString(),
85
)
86
87
+ .setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST)
88
.build()
89
WorkManager.getInstance(this)
90
.beginWith(work)
0 commit comments