Updates
This commit is contained in:
parent
c5a063a19a
commit
5458f37dee
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user