Questions tagged [notification-channel]

Notification Channels introduced with Android 8.0 Oreo.

90 questions
25
votes
2 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…
18
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
  • 4,717
  • 6
  • 45
  • 98
15
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),…
13
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,757
  • 13
  • 70
  • 106
11
votes
3 answers

Intent to open the Notification Channel settings from my app

What's the Intent that I need to send to open the settings of a Notification Channel that I've previously created in my app? I need it to link from my settings activity.
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
  • 14,329
  • 9
  • 39
  • 68
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…
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,500
  • 1
  • 24
  • 40
8
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,152
  • 2
  • 18
  • 33
7
votes
2 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…
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,500
  • 1
  • 24
  • 40
6
votes
0 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…
5
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…
4
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…
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…
1
2 3 4 5 6