Questions tagged [notification-channel]

Notification Channels introduced with Android 8.0 Oreo.

98 questions
1
vote
1 answer

Android Notification Channel silent ringtone by default

I want to create a Notification Channel for Android Oreo where the default sound is silent, I've tried to not specify the sound and it still plays a sound when the notification is dispatched. Any ideas? NotificationChannel chan2 = new…
0
votes
0 answers

How to deal with push notifications with different levels of urgency? Android and iOS comparison

I have an application both on Android and iOS. We are currently reworking our notifications and grouping them into categories with similar urgency and frequency. We want to give users some sort of control of the less priority notifications. My main…
0
votes
0 answers

A channel importance is `IMPORTANCE_DEFAULT` (3) when all app notifications are off

I've noticed that a channel importance is IMPORTANCE_DEFAULT (3) when all app notifications are off (on Android 10). So when all app notifications are off, NotificationManagerCompat.areNotificationsEnabled() returns false, and that is expected, but…
Ksenia
  • 3,453
  • 7
  • 31
  • 63
0
votes
0 answers

Adnroid does not find the path to the notification audio file

Good afternoon. I use custom notification sounds in my project, the initial compilation does not give errors and the sounds are played. In the future, when changes are made in other parts of the code and the subsequent side, notifications come…
0
votes
0 answers

Just add notification channel id

in your code you dont have a **channel **which notification can work with us code e.g. private fun showNotification() { val builder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID) builder.setContentTitle("") …
0
votes
0 answers

Android NotificationChannel.setBypassDnd(true) has no effect on OnePlus/Oppo devices

I want to play the notification ringtone sound even though DND mode is enabled on the Android device. For this, I was requesting DND Override permission (android.permission.ACCESS_NOTIFICATION_POLICY). Once the user grants the permission then while…
0
votes
1 answer

What is the use of notification channel name? Can we see the name in our device?

Does the notification name has any kind of affect in our app or in notification?
0
votes
1 answer

What is the purpose of NotificationChannelCompat?

I saw this class before but cannot use it and I don't see many sample that use it. What exactly is the difference of NotificationChannelCompat from regular NotificationChannel?
Bitwise DEVS
  • 2,858
  • 4
  • 24
  • 67
0
votes
1 answer

Manage notifications settings inside the app on Andorid O and higher

I've created a few notification channels on my android app using: val notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager notificationManager.createNotificationChannel(mChannel) My question now is if it's possible to…
notGeek
  • 1,394
  • 5
  • 21
  • 40
0
votes
1 answer

Android FCM Push Channel Id is always null

I have a custom notification channel that never gets triggered. I read all the documentation for server and client but I'm still missing something. What I want I want to send a high-priority push notification via FCM to eventually wake up a…
0
votes
1 answer

IllegalArgumentException from creating a NotificationChannel

Very occasionally, we're getting an IllegalArgumentException with an empty localized message on some devices while creating a notification channel. I found this answer, but the channel name is 100% certain not "", so not the issue in this case. It's…
Jorn Rigter
  • 745
  • 1
  • 6
  • 25
0
votes
1 answer

Notification Manager creates only one notification channel but i need to create three channels

in my application, i have created 3 notification channels (Follow, Comment, Like) to receive notifications from Firebase Cloud Messaging. When i run app and go to Settings > Apps > My App > App Notifications , I found it show only one notification…
0
votes
0 answers

FCM Push Notifications Stop Sounding In Android Device

Since I got to have push notifications working as required when app was in both background and foreground, I have executed 30-40 notifications while testing (in 2 days), all of them sounding properly when arrived to android device (my custom…
0
votes
1 answer

Disable sound in Android Notifications (without changing visual behavior)

I was able to remove sound with IMPORTANCE_LOW creating the channel, but notification was not showing up on the screen. I want notification to show itself like in IMPORTANCE_HIGH but with no sound. One probably possible hacky way to do that is…
0
votes
1 answer

Is there a way to keep the heads-up notification banner showing? Or specify the amount of time it should stay before it goes away?

Is there a way to make stay longer, stick until the user clicks it, or specify time for it to stay there before hiding ? I am using Firebase Cloud Messaging. How does Whatsapp manage to do this for incoming calls ?