Notification Channels introduced with Android 8.0 Oreo.
Questions tagged [notification-channel]
98 questions
4
votes
2 answers
Getting a failed to post notification on channel "channel_id_here" error
I have been struggling for days now to get local notifications to display on an Android device. Notifications simply do not show up and I'm getting a developer warning:
package Failed to post notification on channel "channel_id_here" error.
I went…

Mike
- 67
- 1
- 7
4
votes
2 answers
Android Push Notification Sound is missing (Not Working ) background and foreground on android
I have implementing FCM for push notification.
I am calling this OnMessageReceived Method but the sound is not played when the app is in the foreground and background
here is my code
public class MyFirebaseMessagingService extends…

Mohit Lakhanpal
- 1,309
- 3
- 11
- 19
4
votes
2 answers
How to properly update notification channel android oreo
I'm trying to update a notification channel after I create it. Namely, I want to properly set the notification sound, but after I create it. I can't really figure out the proper way to do this.
What I tried was to delete the channel and re-create it…

Adrian Olar
- 2,883
- 4
- 35
- 63
4
votes
4 answers
How to access notification channels for another Android app?
I want to create a function that calls the notification channel settings for another app. I don't know the channel IDs for the other app. Is there a way to do that?

Arturo Pineda
- 81
- 5
4
votes
1 answer
Android 8 Foreground Service with Notification Channel
I want to start a foreground service in Android 8 and I want to know how are foreground services compatible with the notification channel system.
Let's say we start a foreground service, then we immediately create the required notification and…

user3412355
- 53
- 6
4
votes
3 answers
After setLockscreenVisibility(Notification.VISIBILITY_SECRET) the notification channel is still appearing on lockscreen
After set a notification channel to not show notifications at lockscreen, it still is showing the notifications on…

JonasOliveira
- 694
- 8
- 26
4
votes
2 answers
Without using the delete, is possible to update a Notification Channel Importance level after it was created?
Without deleting the channel.
After created a notification channel on Android, is that possible to update the importance level of a specific channel though application update?
Just calling the createNotificationChannel again or reinstalling the app…

JonasOliveira
- 694
- 8
- 26
4
votes
1 answer
NotificationChannel always make sound in Android 8.0
I have upgraded target build version to 27 so need to implement notification channel. I'm starting a foreground service which will show a notification when started. With notification channel it's working as expected but it's always make sound.…

shantanu
- 2,408
- 2
- 26
- 56
4
votes
1 answer
Notifications on android oreo - dynamically enable sound/vibration
I have a foreground service that shows a progress notification and if it is finished, the notification is reused as a normal notification to show the service's result
I allow the user to define inside my app if the final notification is silent or…

prom85
- 16,896
- 17
- 122
- 242
3
votes
3 answers
Android Notification Channel always defaults to Silent
I am creating android notification channel, i want the notification to vibrate and play sound. But for some reason the notification is always displayed under Silent group in android pull down menu. No sound or vibration is played. Here is the code I…

Easy Coder
- 295
- 1
- 3
- 14
3
votes
1 answer
Android: How to disable notification channel programmatically?
I have a working implementation, to check if a channel is enabled.
But is there any possible way to disable a notification channel programmatically?
How I check if the channel is enabled:
/**
* Get the setting a user has applied to the…

JacksOnF1re
- 3,336
- 24
- 55
3
votes
0 answers
Why notification.builder setSound doesnt work?
In my application i successfully create a notification but the sound that plays is the default which i dont want. I have a sound clip in the resources/raw/basic_notification.mp3 and i want to play this when the notification is built.
fun…

james04
- 1,580
- 2
- 20
- 46
3
votes
1 answer
Android Notification vibrates with NotifiationChannel.enableVibration(false)
With API 26 (Android 8.0) we need to define a NotificationChannel for each Notification. Each channel has its own settings of disruptions (e.g. vibration, light, sound).
Problem:
When I disable vibration for this channel and deploy this on a Android…

hb0
- 3,350
- 3
- 30
- 48
2
votes
0 answers
How to customize Laravel default notifications architecture along with custom columns in notifications table migration without repeating provided code
As Laravel shipped with a default notification module. It provides us following…

M-Khawar
- 855
- 5
- 17
2
votes
0 answers
setBypassDnd and setLockscreenVisibility only modifiable by the system
On Android, when creating a channel, there are two properties: setBypassDnd and setLockscreenVisibility, that are only modifiable by the system (https://developer.android.com/reference/android/app/NotificationChannel).
I have tested creating a…

nichtwer
- 61
- 1
- 6