NTP-66959 | Add android version check for timer notification (#16760)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
package com.navi.common.pushnotification
|
||||
|
||||
import android.content.Context
|
||||
import android.os.Build
|
||||
import android.os.Bundle
|
||||
import com.google.firebase.messaging.RemoteMessage
|
||||
import com.navi.base.utils.isNotNullAndNotEmpty
|
||||
@@ -28,7 +29,10 @@ object CustomNotificationHandler {
|
||||
} else {
|
||||
when (data[NotificationConstants.TEMPLATE_TYPE]) {
|
||||
TIMER_TEMPLATE -> {
|
||||
if (remoteMessage.priority == RemoteMessage.PRIORITY_HIGH) {
|
||||
if (
|
||||
remoteMessage.priority == RemoteMessage.PRIORITY_HIGH &&
|
||||
Build.VERSION.SDK_INT <= Build.VERSION_CODES.R
|
||||
) {
|
||||
TimerNotificationRenderer.render(context, data)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user