Notification Channels introduced with Android 8.0 Oreo.
Questions tagged [notification-channel]
98 questions
32
votes
3 answers
How to specify Android notification channel for FCM push messages in Android 8
Our app now has targetSdkVersion 26 (Android 8) and the app uses FCM push notifications.
As FCM documentation prescribes I updated the FCM client library to version 11.2.0:
dependencies {
compile…

Vit Khudenko
- 28,288
- 10
- 63
- 91
22
votes
1 answer
How to remove old notification channels?
My app now has 3 notification channels, I want to remove 2 of them.
I thought simply not registering 2 channels would do the trick but when I open the notification settings on the Android device, the old channels still appear.
Is it possible to…

SagiLow
- 5,721
- 9
- 60
- 115
17
votes
3 answers
Intent to open the Notification Channel settings from my app
What's the Intent that I need to send in order to open the settings of a Notification Channel that I've previously created in my app?
I need to link to it from my app.

The Matrix
- 1,268
- 2
- 14
- 23
16
votes
4 answers
Android O: Notification Channel localization
I created a Notification Channel like this:
NotificationChannel channel = new NotificationChannel(CHANNEL_ID_FOOBAR, getContext().getString(R.string.notification_channel_foobar),…

Alécio Carvalho
- 13,481
- 5
- 68
- 74
16
votes
4 answers
Correct way to create Notification Channels from Android O Api
The notification channels which introduced from Android O (API 26) version.I read about it from the following links:
Managing notification channels
Google Sample for Creating Channel
Questions:
If I have multiple numbers of notification then Is…

sam_k
- 5,983
- 14
- 76
- 110
13
votes
1 answer
What is the correct way to update notification channel name?
I want to update notification channel name according to Locale. In order to do that I’m using a BroadcastReceiver and listening for the ACTION_LOCALE_CHANGED broadcast.
My question is what is the right way to update the name?
Should I do something…

notGeek
- 1,394
- 5
- 21
- 40
10
votes
1 answer
What is the "AdMob Offline Notifications" notification channel?
All of the sudden I saw that our app had a new notification channel named "AdMob Offline Notifications".
We do use AdMob, so I assume it's created by Google's library, but I can't find any documentation on it. I'm wondering on what that channel is…

Roy Solberg
- 18,133
- 12
- 49
- 76
9
votes
2 answers
Custom sound for NotificationChannel for Android 11 not working
I have push notifications with custom sounds working until android 10. Since Android 11 the sound attached to the notification channel stopped playing when the notification is presented as drop down style. It works when it is presented as full…

Angel Terziev
- 91
- 3
9
votes
3 answers
How can i hide badge count number when startForeground()
startForeground() need to create NotificationChannel so it will show badge number 1 on Launcher icon in Oreo devices
How can i hide/disable it programmatically?
Because Galaxy S8(Oreo) display badge number 1.
And Android 8.0 emulator also display…

Knowledge Drilling
- 986
- 1
- 8
- 22
9
votes
2 answers
Huawei EMUI 8 Oreo - Notification Channel - Tone
Some users are reporting on Huawei EMUI 8.0 Oreo that the Notification Channel does not have the option to change tone "Sound" / "Notification Tone" from the app!
As of the official docs the developer can't change the settings anymore.
So how can I…

chrisonline
- 6,949
- 11
- 42
- 62
9
votes
2 answers
Android O Settings to enable background restriction for applications
As per the Docs-
Note: By default, these restrictions only apply to apps that target
Android 8.0 (API level 26) or higher. However, users can enable most
of these restrictions for any app from the Settings screen, even if
the app targets an…

Arnav M.
- 2,590
- 1
- 27
- 44
7
votes
2 answers
Notification Not Appearing on notify()
I have been having difficulties lately getting many specific functions to work on Android Studio. Recently I am working on trying to display simple notifications. They never show up. I feel like I have tried everything at this point. Here's my…

Jermaine Oliver
- 115
- 1
- 7
7
votes
2 answers
How to detect a Notification Channel is blocked by user in Android 8.0
Is there any callback my application receives when user blocks a Notification Channel created by my application OR it can be detected later ?

Arnav M.
- 2,590
- 1
- 27
- 44
5
votes
1 answer
How to set notification channel when sending messages via rest api?
I've been implementing Notification Channels in my android app to support recent android versions.
You can set the notification channel id when sending messages from the firebase web console, but I was not able to find out how to set the channel id…

linnedude
- 161
- 1
- 6
4
votes
1 answer
Is it possible to set repeating times of vibration pattern of a Notification Chanel for Android SDK 26
I am trying to use a custom vibration on local notifications. After reading a bit I set the custom vibration pattern in the Notification Channel, like this:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
val notificationChannel =
…

MeLean
- 3,092
- 6
- 29
- 43