Commit c278feb2 authored by Leonardo Aramaki's avatar Leonardo Aramaki

If it's a test push message then make the notification to dismiss when tapped

parent fe14cdb0
......@@ -250,11 +250,14 @@ class PushManager @Inject constructor(
.setContentIntent(contentIntent)
.setMessageNotification()
if (host.isEmpty()) {
builder.setContentIntent(deleteIntent)
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val channelId: String
val channelName: String
if (host.isEmpty()) {
builder.setContentIntent(deleteIntent)
channelName = "Test Notification"
channelId = "test-channel"
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment