Questions tagged [notification-channel]

Notification Channels introduced with Android 8.0 Oreo.

98 questions
0
votes
0 answers

Android O: Notification Channel name localization

I'm facing similar problem mentioned here in this SO post. Have notification channel got created something like this, NotificationChannel channel = new NotificationChannel(CHANNEL_ID_FOOBAR,…
0
votes
0 answers

Notificationmanager.notify not showing a notification

I have a MediaPlayer Service, that plays songs even when the app is minimized. Now i wanted to display a "player notification" for the user to interact and that the service doesn't get killed. I have implemented the two functions but the…
Luis Ka
  • 95
  • 7
0
votes
1 answer

Alarm notification is not working for API>=26 android emulators

I am trying to send a notification that appears under the top navigation bar as follows: My codes work for android emulator with API < 26, but they do not work for android emulator with API >= 26. I found that it is because I need to add channel,…
0
votes
1 answer

Android notification not making sound and vibration

I have written code for notification with notification channel. Its making default sound in my two vivo phones but its not at all making sound in my xiaomi phone with android os 7 and also in my samsung phone with android 8. Here is my notification…
Cassius
  • 353
  • 3
  • 16
0
votes
1 answer

Stop overlapping Android Audio Notifications

When using FCM Notification Channels - it is no longer possible to change the Notification Sound when a notification arrives (using SetSound()). This is causing me a problem when my app receives a notification while the audio of a previous…
0
votes
1 answer

NotificationChannel not working for Android 8 and above

I'm new to developing an application. Currently, I'm working on push notification. Before this, I'm trying using Android 4.4, and the push notification work just fine. But, now I'm trying to debug on my Android 9 (Pie), but it seems like the…
0
votes
1 answer

Android notification action to update notification channel settings

I've written the following method to send notificaitons, notifications are working however when the notification action button settings is pressed, the pending intent to the channel settings isn't opened. Any ideas why this isn't working? private…
algorhythm
  • 3,304
  • 6
  • 36
  • 56
0
votes
3 answers

FCM: Notification Channels are mandatory or optional?

In Firebase Cloud Messaging docu, you can read that is mandatory: Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel. Caution: If you target Android 8.0 (API level 26) and post a notification without…
0
votes
1 answer

How to show an expanded silent notification on Android Q

What I try to achieve is a notification like #2 ("USB debugging connected"): shown with title and description on separate lines. However, when I creata a notification channel with NotificationChannel(channelId, channelName,…
Tobias
  • 7,282
  • 6
  • 63
  • 85
0
votes
2 answers

Custom notification sound is not working at NotificationChannel for android P

I have custom notification sound but when device take notification therefore device is not silent, notification sound is not working. Device is playing default sound. NotificationChannel mChannel = new NotificationChannel(MISSED_CALL, "missedCall",…
propoLis
  • 1,229
  • 1
  • 14
  • 48
0
votes
1 answer

Two notifications with same ID but diffrent Noification channels

I'm generating two local notifications from my app using two different notification channel. notification configurations will be as below, 1.) Notification1 (notification_channel: msg_1 and notification_id: 1) 2.) Notification2…
Shivam Sharma
  • 1,015
  • 11
  • 19
0
votes
0 answers

My PushNotification don't run in personal Channel Id

I have developed my Simple Application to try Intent Service. This application gives from simple edit text a number, and when user push on "Start Service" button, my app starts My Service: public class MyService extends IntentService { String…
0
votes
1 answer

Notification not showing in samsung oreo devices

I encountered a strange problem today, push notification is not showing in samsung devices which have oreo in it but it's working fine in other oreo devices. Here is the code i am using: private void sendNotification(String messageTitle,String…
Suraj Vaishnav
  • 7,777
  • 4
  • 43
  • 46
0
votes
1 answer

problem in show a notification in in real device

hi guys i created a notification for android app , my code work in virtual device but not work in real device , please help me. public void onClick(View v){ try { NotificationCompat.Builder builder = new…
0
votes
1 answer

NotificationChannel - How to show a notification for a while then hide it?

a while back I updated my App to add support for Android 8+, after updating the notifications to use the required NotificationChannel I noticed that I lost a feature. The App uses a chronometer notification, back then I was able to update the…
urukh
  • 360
  • 1
  • 3
  • 17