From 5458f37dee0a7ec7c606b8fba7fbe0355af96b74 Mon Sep 17 00:00:00 2001 From: William Moore Date: Thu, 15 Jun 2023 09:23:43 -0500 Subject: [PATCH] Updates --- .../works/grunge/fcm_receiver/MyFirebaseMessagingService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/works/grunge/fcm_receiver/MyFirebaseMessagingService.kt b/app/src/main/java/works/grunge/fcm_receiver/MyFirebaseMessagingService.kt index ac6c09d..d8e40c8 100644 --- a/app/src/main/java/works/grunge/fcm_receiver/MyFirebaseMessagingService.kt +++ b/app/src/main/java/works/grunge/fcm_receiver/MyFirebaseMessagingService.kt @@ -102,6 +102,7 @@ class MyFirebaseMessagingService : FirebaseMessagingService() { .setContentTitle(getString(R.string.fcm_message)) .setContentText(messageBody) .setAutoCancel(true) + .setPriority(NotificationCompat.PRIORITY_MAX) .setSound(defaultSoundUri) .setContentIntent(pendingIntent) @@ -111,9 +112,10 @@ class MyFirebaseMessagingService : FirebaseMessagingService() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { val channel = NotificationChannel( channelId, - "Channel human readable title", + "TeaSense", NotificationManager.IMPORTANCE_DEFAULT, ) + notificationManager.createNotificationChannel(channel) }