Open yongsuk44 opened 5 months ago
This happens on Android 8 devices, it's related to
It should call androidx.core.graphics.drawable.IconCompat#toIcon(android.content.Context)
here.
You can try out #64.
One more related issue on Android 10:
java.lang.IllegalArgumentException: Context is required to resolve the file uri of the icon: content://com.google.android.samples.socialite/icon/3
at androidx.core.graphics.drawable.IconCompat$Api23Impl.toIcon(IconCompat.java:1297)
at androidx.core.graphics.drawable.IconCompat.toIcon(IconCompat.java:529)
at androidx.core.graphics.drawable.IconCompat.toIcon(IconCompat.java:517)
at androidx.core.app.NotificationCompat$BubbleMetadata$Api29Impl.toPlatform(NotificationCompat.java:8788)
at androidx.core.app.NotificationCompat$BubbleMetadata.toPlatform(NotificationCompat.java:8501)
at androidx.core.app.NotificationCompatBuilder.<init>(NotificationCompatBuilder.java:262)
at androidx.core.app.NotificationCompat$Builder.build(NotificationCompat.java:2524)
at com.google.android.samples.socialite.repository.NotificationHelper.showNotification(NotificationHelper.kt:274)
at com.google.android.samples.socialite.repository.NotificationHelper.showNotification$default(NotificationHelper.kt:159)
at com.google.android.samples.socialite.repository.ChatRepository$sendMessage$2.invokeSuspend(ChatRepository.kt:95)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Due to
https://github.com/android/socialite/assets/38935359/ee95ae46-76b0-4249-ad4f-fc3986f6301e