Fix crash due to missing notification
Thread: main, Exception: java.lang.RuntimeException: Unable to start service org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService@3d1f0bc with Intent { cmp=im.vector.app.debug/org.jitsi.meet.sdk.JitsiMeetOngoingConferenceService (has extras) }: java.lang.IllegalArgumentException: Invalid notification (no valid small icon): Notification(channel=JitsiOngoingConferenceChannel pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0xa color=0x00000000 category=call actions=2 vis=PUBLIC semFlags=0x0 semPriority=0 semMissedCount=0)
@ -179,7 +179,7 @@ class DebugMenuActivity : VectorBaseActivity<ActivityDebugMenuBinding>() {
|
|||||||
.setContentText("Content")
|
.setContentText("Content")
|
||||||
// No effect because it's a group summary notif
|
// No effect because it's a group summary notif
|
||||||
.setNumber(33)
|
.setNumber(33)
|
||||||
.setSmallIcon(R.drawable.ic_status_bar)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
// This provocate the badge issue: no badge for group notification
|
// This provocate the badge issue: no badge for group notification
|
||||||
.setGroup("GroupKey")
|
.setGroup("GroupKey")
|
||||||
.setGroupSummary(true)
|
.setGroupSummary(true)
|
||||||
@ -212,7 +212,7 @@ class DebugMenuActivity : VectorBaseActivity<ActivityDebugMenuBinding>() {
|
|||||||
// For shortcut on long press on launcher icon
|
// For shortcut on long press on launcher icon
|
||||||
.setBadgeIconType(NotificationCompat.BADGE_ICON_NONE)
|
.setBadgeIconType(NotificationCompat.BADGE_ICON_NONE)
|
||||||
.setStyle(messagingStyle1)
|
.setStyle(messagingStyle1)
|
||||||
.setSmallIcon(R.drawable.ic_status_bar)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
.setGroup("GroupKey")
|
.setGroup("GroupKey")
|
||||||
.build()
|
.build()
|
||||||
)
|
)
|
||||||
@ -224,7 +224,7 @@ class DebugMenuActivity : VectorBaseActivity<ActivityDebugMenuBinding>() {
|
|||||||
.setContentTitle("Title 2")
|
.setContentTitle("Title 2")
|
||||||
.setContentText("Content 2")
|
.setContentText("Content 2")
|
||||||
.setStyle(messagingStyle2)
|
.setStyle(messagingStyle2)
|
||||||
.setSmallIcon(R.drawable.ic_status_bar)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
.setGroup("GroupKey")
|
.setGroup("GroupKey")
|
||||||
.build()
|
.build()
|
||||||
)
|
)
|
||||||
|
@ -582,7 +582,7 @@ class NotificationUtils @Inject constructor(
|
|||||||
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
||||||
// Build the pending intent for when the notification is clicked
|
// Build the pending intent for when the notification is clicked
|
||||||
val openRoomIntent = buildOpenRoomIntent(roomInfo.roomId)
|
val openRoomIntent = buildOpenRoomIntent(roomInfo.roomId)
|
||||||
val smallIcon = R.drawable.ic_status_bar
|
val smallIcon = R.drawable.ic_notification
|
||||||
|
|
||||||
val channelID = if (roomInfo.shouldBing) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
|
val channelID = if (roomInfo.shouldBing) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
|
||||||
return NotificationCompat.Builder(context, channelID)
|
return NotificationCompat.Builder(context, channelID)
|
||||||
@ -695,7 +695,7 @@ class NotificationUtils @Inject constructor(
|
|||||||
): Notification {
|
): Notification {
|
||||||
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
||||||
// Build the pending intent for when the notification is clicked
|
// Build the pending intent for when the notification is clicked
|
||||||
val smallIcon = R.drawable.ic_status_bar
|
val smallIcon = R.drawable.ic_notification
|
||||||
|
|
||||||
val channelID = if (inviteNotifiableEvent.noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
|
val channelID = if (inviteNotifiableEvent.noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
|
||||||
|
|
||||||
@ -775,7 +775,7 @@ class NotificationUtils @Inject constructor(
|
|||||||
): Notification {
|
): Notification {
|
||||||
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
||||||
// Build the pending intent for when the notification is clicked
|
// Build the pending intent for when the notification is clicked
|
||||||
val smallIcon = R.drawable.ic_status_bar
|
val smallIcon = R.drawable.ic_notification
|
||||||
|
|
||||||
val channelID = if (simpleNotifiableEvent.noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
|
val channelID = if (simpleNotifiableEvent.noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
|
||||||
|
|
||||||
@ -890,7 +890,7 @@ class NotificationUtils @Inject constructor(
|
|||||||
lastMessageTimestamp: Long
|
lastMessageTimestamp: Long
|
||||||
): Notification {
|
): Notification {
|
||||||
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
|
||||||
val smallIcon = R.drawable.ic_status_bar
|
val smallIcon = R.drawable.ic_notification
|
||||||
|
|
||||||
return NotificationCompat.Builder(context, if (noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID)
|
return NotificationCompat.Builder(context, if (noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID)
|
||||||
.setOnlyAlertOnce(true)
|
.setOnlyAlertOnce(true)
|
||||||
@ -980,7 +980,7 @@ class NotificationUtils @Inject constructor(
|
|||||||
NotificationCompat.Builder(context, NOISY_NOTIFICATION_CHANNEL_ID)
|
NotificationCompat.Builder(context, NOISY_NOTIFICATION_CHANNEL_ID)
|
||||||
.setContentTitle(stringProvider.getString(R.string.app_name))
|
.setContentTitle(stringProvider.getString(R.string.app_name))
|
||||||
.setContentText(stringProvider.getString(R.string.settings_troubleshoot_test_push_notification_content))
|
.setContentText(stringProvider.getString(R.string.settings_troubleshoot_test_push_notification_content))
|
||||||
.setSmallIcon(R.drawable.ic_status_bar)
|
.setSmallIcon(R.drawable.ic_notification)
|
||||||
.setLargeIcon(getBitmap(context, R.drawable.element_logo_green))
|
.setLargeIcon(getBitmap(context, R.drawable.element_logo_green))
|
||||||
.setColor(ContextCompat.getColor(context, R.color.notification_accent_color))
|
.setColor(ContextCompat.getColor(context, R.color.notification_accent_color))
|
||||||
.setPriority(NotificationCompat.PRIORITY_MAX)
|
.setPriority(NotificationCompat.PRIORITY_MAX)
|
||||||
|
Before Width: | Height: | Size: 707 B After Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 433 B After Width: | Height: | Size: 433 B |
Before Width: | Height: | Size: 910 B After Width: | Height: | Size: 910 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |