5/1/2023 0 Comments Ntr debugger git![]() ![]() Here are the logs when I get notification: 11-14 10:08:31.200 16509-16509/ D/FirebaseApp: .FirebaseAuth is not linked. I got the notification as expected but I didn't get any notification sound. I placed my notification.mp3 file here: res/raw/notification. Here notificationSound = Uri.parse(SCHEME_ANDROID_RESOURCE + "://" + context.getPackageName() + "/raw/notification") NotificationManager.notify(NOTIFICATION_ID_SMALL_IMAGE, notification) NotificationManager notificationManager = (NotificationManager) context.getSystemService(NOTIFICATION_SERVICE) setLargeIcon(codeResource(context.getResources(), icon)) Here is my code: Notification notification = tSmallIcon(icon).setTicker(title).setWhen(0) I used firebase console to throw an notification. I'm trying to show an notification with custom sound. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |