Questions tagged [notification-channel]

Notification Channels introduced with Android 8.0 Oreo.

98 questions
1
vote
0 answers

Notification not appearing (Notification Channel)

I want to set a reminder from my app. After setting the time, I want to be able to receive the reminder when the set time comes. I have set a notification and I'm trying to set up notification channels but I am not getting any notification. This is…
1
vote
0 answers

How to set notification channels default values ​in >= Android O

I am struggling with this problem for a banch days and cannot find proper way to do it. I would like to set default channel settings (like sound on, lights on, vibration, lock screen notification etc.) When I create a channel (already tried with…
1
vote
0 answers

Can't enable Audio in Channel Settings

I'm working with notification channels and as standard I want to enable sound for notification. I set sound in NotificationChannel options, but it's disabled. I also tried to set Audio in the NotificationCompat.Builder but this either didn't…
1
vote
0 answers

Notification Channel doesn't play the URI I sent in setsound (from RAW folder)

I am trying to create a notification channel in Android that would play a sound from my Raw folder. As you can see in below code, I have put this line: RingtoneManager.getRingtone(a, uri).play(); That allows me to test that Uri is correct, and this…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
1
vote
1 answer

How to getSound(), getName() from application NotificationChannel >=Oreo

How to get following details from particular application Notification channel getSound(); getName(); getId(); getGroup(); I have tried with following code but it returns system default channel details Uri=playSound ; String id =…
Sagar
  • 5,273
  • 4
  • 37
  • 50
1
vote
0 answers

NotificationManager Channel Importance Levels are incorrect

I am playing around with notification channels and noticed that the channel importance levels of the emulator don't fit to the NotificationManager constants. NotificationManager: public static final int IMPORTANCE_MIN = 1; public static final int…
1
vote
0 answers

Android O : Notification channel for Incoming call

Introduction of notification channel allow many apps to remove their notification settings in app and redirect to device settings. Which is quite easy for developers as the framework itself will handle notification sounds. Incoming call ringtones…
1
vote
1 answer

How to handle Android notification badges with multiple launchers?

Since Android 8 all the notification should be assigned to some NotificationChannel. The issue in my case is that the app has more than one launcher, and the badges are displaying over each of them. So I can disable badges for each…
1
vote
0 answers

Android Notification Channels. Disable Sound for group

I have channel group NotificationChannel notificationChannel = new NotificationChannel(GENERAL_CHANNEL_ID, GENERAL_CHANNEL_NAME, NotificationManager.IMPORTANCE_DEFAULT); notificationChannel.enableLights(true); …
Sigmund
  • 748
  • 1
  • 8
  • 28
1
vote
1 answer

Notification channel error

I have an app which will recieve FCM notifications.App was recieved notifications on os below Android oreo devices. But notificatons are not recieving in android oreo device.Instead of notification it gets toast "developer warning for package failed…
1
vote
1 answer

Android notifications not showing on kitkat

Im trying to show notifications from firebase messaging it works on oreo and above but only plays a sound on kitkat devices (I haven't got other devices or emulators to test against) and I get some strange error logs such as Could not find class…
1
vote
2 answers

Build Version Code O not being recognized correctly

I have this code snippet for my local notifications to work on Oreo devices. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { NotificationChannel channel = new NotificationChannel(CHANNEL_ID, CHANNEL_NAME, …
1
vote
0 answers

Android Notification Actions with Notification Channeling

I am working on an application where we have to generate a notification with action buttons. It was working fine till the date we decided to update our notification handling to support notification channels (released with Android Oreo 8.0). I don't…
1
vote
1 answer

How to properly initialize and use NotificationChannelGroup

Notification channels and groups seem to be straightforward. Intuitively, I expected to make a channel for each notification category, and then create groups for each user. In the end, all notifications should be bundled based on their unique…
Allan W
  • 2,791
  • 4
  • 23
  • 41
1
vote
1 answer

How to create NotificationChannel for lower API's ( < 26 ) ?

How to create NotificationChannel for lower API's ( < 26 )?. Is there some way to do it with AppCompat?