Skip to content

Commit 9ffee54

Browse files
committed
fix: set work as important to the user
1 parent 34b10db commit 9ffee54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/main/java/to/bitkit/fcm/FcmService.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package to.bitkit.fcm
33
import android.os.Bundle
44
import androidx.core.os.toPersistableBundle
55
import androidx.work.OneTimeWorkRequestBuilder
6+
import androidx.work.OutOfQuotaPolicy
67
import androidx.work.WorkManager
78
import androidx.work.workDataOf
89
import com.google.firebase.messaging.FirebaseMessagingService
@@ -83,6 +84,7 @@ class FcmService : FirebaseMessagingService() {
8384
"payload" to notificationPayload?.toString(),
8485
)
8586
)
87+
.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST)
8688
.build()
8789
WorkManager.getInstance(this)
8890
.beginWith(work)

0 commit comments

Comments
 (0)