Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Notification Icon Background Color Appears Different in Android Notification (Expected #00BFFF, Shows as #1DA1F2)

I'm working on a notification for my Android app, and I've set a custom background color for the notification icon. The color I expect to see is #00BFFF (a light blue), but the icon appears with a ...
Santhosh Kumar's user avatar
0 votes
1 answer
37 views

How to block a notification entirely?

I'm running a service extending NotificationListenerService: class NotificationBlockerListenerService : NotificationListenerService() { override fun onNotificationPosted(sbn: StatusBarNotification)...
Valentin Vignal's user avatar
1 vote
2 answers
1k views

How do I set the notification icon to a specific color?

I am trying to set notification icon which I generated using Android Image Asset. Generated image has just white color and some transparent part. I pasted here piece of code here. Which doesn't ...
sumit kumar's user avatar
0 votes
1 answer
113 views

Android - Disable notification bar

My requirement is to lock my app in foreground for a particular time period. During that time, I have to disable the notification bar like restrict taking incoming calls from the notification. I have ...
Pratheeja's user avatar
0 votes
1 answer
708 views

How to combine all app notifications together?

I want to show the app name on top and all the notifications of the app clubbed below it. I am receiving the notification from firebase and using this code: val messagingStyle = Notification....
Sneha's user avatar
  • 94
1 vote
0 answers
321 views

How to prevent head-up notification from dismissing when it is clicked in Android 6?

As i wrote in the title of this question, how can i prevent head-up notification from dismissing when it's clicked? this only happens on Android 6 Mashmellow(API 23). If i click the head-up ...
CodingBruceLee's user avatar
1 vote
1 answer
772 views

How to update progress in notification without notification icon blinking?

In my Android application i am downloading files inside a Foreground Service. Before starting downloading i am displaying a notification with 0 progress and then updating the progress in ...
Nayab's user avatar
  • 127
3 votes
1 answer
10k views

Custom Android notification sound

I'm trying to implement a custom notification sound in my application. I have written the following code, but the application plays only default sound and not the custom sound i've added in raw folder....
Aagam Shah's user avatar
0 votes
1 answer
1k views

Custom notification is not showing in the android notification panel

I'm trying to implement a custom notification in my project using Kotlin language. But, it does not show in the notification panel, although its's default one is working on button click. Suppose I ...
Prashant Singh's user avatar
1 vote
0 answers
348 views

How do I get the expandable image from StatusBarNotification?

I am trying to get all the information from a StatusBarNotification (sbn). I've already set up the NotificationListenerService. I was able to get EXTRA_TITLE, EXTRA_TEXT and EXTRA_LARGE_ICON. But I ...
Jeeva's user avatar
  • 4,785
4 votes
0 answers
637 views

Android 11 device Not showing badge count

I am showing an android app to show the badge count on the app launcher icon. Tried in a different version but it's not working on Android 11. May I know, is there anything new API for the same on ...
Malhotra's user avatar
  • 241
3 votes
2 answers
1k views

How to access the Push Notification counter on Android (TV)?

I would like to access the number of currently available push notifications The following :, here on a Android TV emulator image.. So how can I read that number? EDIT: I do not want to set anything.
Ralf Wickum's user avatar
  • 3,220
0 votes
1 answer
291 views

Having Exoplayer controls in both layout and notification bar?

I'm building a podcast player using the Exoplayer. I've managed to set it up to have the controls both in the layout and the notification bar using exoplayer's PlayerNotificationManager. The problem ...
dbarnes's user avatar
  • 509
1 vote
1 answer
44 views

Why do notifications on Oreo not display unless an icon is set

Is this a platform bug or some problem in my implementation? It appears to be regardless of importance level. Version of Android is 8.1.0. Target SDK is 22 (I am stuck on that unfortunately). ...
Daniel Wilson's user avatar
2 votes
2 answers
2k views

How to create Custom Notification Icons that support both Light and Dark theme in Android

In my application I used icons in custom notification. The icons' color is black. It works fine in light mode, but NOT in dark. The icons are made by vector graphics in Android. The problem with ...
Riskhan's user avatar
  • 4,462
2 votes
1 answer
1k views

Show video, gif or banner in push notificaion

I have come across the notification which actively changes the content like banners. AFAIK videos and GIFs are not supported in the notification. How can we achieve this? I have searched and found ...
Rumit Patel's user avatar
  • 12.2k
0 votes
1 answer
98 views

Android Notification is not Showing Java for Stop Watch

It's me again, and now I'm currently building an app for a stopwatch, alarm, etc. So I've added service and notification into my code but the thing is that the only one which runs perfectly is the ...
XVallerie's user avatar
  • 151
0 votes
1 answer
321 views

Is it possible to add initial text to notification RemoteInput (Android)?

I am creating Android notes app and want to add ability to edit note that stores in notification. So can I add initial text to Android RemoteInput from the current note(notification) and allow user to ...
Stanislav Danylenko's user avatar
0 votes
0 answers
61 views

How to display notification with large and small icon below oreo version

I want to display small icon as well large icon in Notification. I can able to achieve this properly in oreo and above that. But when tested in android 6, large icon and small icon both overlaid. ...
Kousalya's user avatar
  • 760
1 vote
0 answers
660 views

Load remote image to NotificationCompat MessagingStyle Message SetData in Android

I am trying to load image from a remote url in NotificationCompat.MessagingStyle.Message.setData() method. Code is like this val senderImg = Picasso.with(this).load(senderAvatar).get() val sndr = ...
theanilpaudel's user avatar
2 votes
0 answers
3k views

Is simple broadcast receiver is enough to handle FCM events?

I had problems with FCM that i want to send notification from Notifications composer (Firebase web). and somewhat modify how it looks in system notifications center (system tray). And also on click ...
Alpha's user avatar
  • 1,834
0 votes
2 answers
127 views

Why my notification not working on Android > 7?

I need help with my notification. This is not working on Android > 7. I use broadcast receiver for repeat my notification every day at 10 am I want my notification work on Android min 19 to max 29. ...
user avatar
1 vote
2 answers
1k views

Clear exo player notification when app stops from recent apps in android studio

I am developing an app for radio streaming using exoplayer library. So, I want to clear(delete) exoplayer notification bar (with play/stop buttons) when I close the app(from recent apps e.t.c). Now, I ...
Stefanos Iliadis's user avatar
0 votes
2 answers
160 views

How I can remove the "Status and notification bar"? [closed]

I plan to program an app with Android Studio. But this bar bothers me: The status and notification bar
Luca's user avatar
  • 29
1 vote
0 answers
235 views

How to solved my problem for all notification not displayed when extending it from a group of notification in android

I have added 20 messages that are in for loop for a group notification like whats app. It is created successfully but all notification is showing, only 7 child group messages are displaying when ...
user651475's user avatar
0 votes
1 answer
525 views

Is there My Music Player Notifcation Pause and Play Button Not Working But Music Stop and Play In Main Activity

I am creating Music Player All Functionality Working fine But My Notification bar Play and Pause Button Not changing when i press in notification pause button but music is stop and also again click on ...
Akash's user avatar
  • 23
0 votes
2 answers
94 views

Clicking on notification from an app with no Icons does not invoke the app

I am working on one of the embedded app that I need to sunset, if I hide the icon of the application through code, then the applicaton does not get invoked when I click on the system trey notification ...
Susheel Tickoo's user avatar
6 votes
2 answers
5k views

How to support multiple colors (more than two color) for Android Notification icon?

I am working on Android app (API level >23). And I have to support Notification. And my notification icon is supported more than two colors. If I use that icon then icon displays in grey in ...
Alok Mishra's user avatar
  • 2,024
3 votes
1 answer
570 views

How to remove "+999" from notification?

I am using below code to show inbox style notification in android app. In API 23 and below "+999" is showing bottom right side when I am expanding the notification, But in API 24 and above "+999" ...
Naveen Kumar's user avatar
  • 3,818
0 votes
1 answer
956 views

Notification not showing below Android Oreo version

My notification works great for oreo and above (26+) but I've just tested it below this API and no notification is shown. I thought I'd taken this into account by only having a notification channel ...
sS3tYo's user avatar
  • 21
0 votes
0 answers
2k views

Auto-dismiss notification on Android 9 app when notification action performed

I have an Android app with a working feature which I have now migrated to Android 9 (previously targeting Android 8) which somewhat broke the feature. I have this flow (when app is started): Screen ...
Alix's user avatar
  • 2,827
1 vote
1 answer
1k views

Do drawer notification icons have to be white?

My app is for API 26 or higher. I am having an issue with the small icon in the notification. I went to the documentation here, and regardless of my issue, I saw that it is mentioned the icon has to ...
Tsabary's user avatar
  • 3,878
1 vote
1 answer
548 views

How to set tiny notification icon badge

How can I correctly set the round small badge that appears right on top of my app's notification's largeIcon in the picture below(I want to change the round ring which is the default to a picture) ...
linker's user avatar
  • 881
1 vote
0 answers
111 views

NotificationManager Using Clear All Notification [duplicate]

Is Possible to clearAll notification? btnMessageStyle1.setOnClickListener (arg0 -> { final int NOTIFICATION_ID = 1; mNotifyManager = (...
S_i_l_e_n_t  C_o_d_e_r's user avatar
0 votes
1 answer
51 views

Developing an app which works as a DND application and blocks all the notifications for given time

I am a beginner to android and I want to develop an application which blocks all the other app notifications for some period of time. Is it possible to block other app notifications ? If it is ...
Sarang Barshikar's user avatar
1 vote
0 answers
421 views

How to set different sounds to different notification?

I want to set a different notification sound to a notification depending on it's content. I have set a working sound if the title of the notification contains number "1", "2", or "3". However, the ...
Enzo's user avatar
  • 57
1 vote
1 answer
836 views

Notification custom sound and vibrate not working?

I have an app that receives notification, all is working. However, the custom sound and vibration is not working. I'm testing it on Android 9 pie. Uri sound = Uri.parse("android.resource://" +...
Enzo's user avatar
  • 57
1 vote
0 answers
79 views

WhatsApp notifications for a specific chat while I am in it

I'm working on a notification based app, for which I need to listen to incoming notifications. By using the Accessibility Service I've been able to listen to WhatsApp notifications. However, when I am ...
Surfing's user avatar
  • 11
0 votes
2 answers
2k views

notification status bar icon doesn't change to white

As the title say when i launch i notify the small icon on the status bar doesnt change color to white and is almost invisible: Notification n = new Notification.Builder(this) ....
Giorgio Cafiso's user avatar
1 vote
1 answer
166 views

Android Notification Bar Not Updating all Values

I have a service with a worker thread. Meanwhile in the while loop, the notification bar gets updated. But not all values get updated and sometimes even the message Completed is not shown remaining ...
user avatar
0 votes
1 answer
234 views

All notification removed while tapping on only one notification

I have used Firebase messaging services and I have generated notifications. When I get multiple notification and when I tap on one notification then all other notifications get removed. I do not want ...
Kuls's user avatar
  • 2,067
2 votes
0 answers
272 views

NotificationManager: notify: id corrupted: sent , got back 0

I'm facing a issue with NotificationManager in my app for the past couple of days and I don't seem to be getting closer to solving it. I have a very simple ThreadPoolExecutor to download multiple ...
Usha's user avatar
  • 74
0 votes
1 answer
452 views

The correct way to update progress in notification (android)

I've checked a lot of websites and all of them were using: notificationManager.notify(id,builder.build()); So I thought it's the right way and went for it in my app.The result proved me wrong.This ...
Steve Moretz's user avatar
  • 3,100
0 votes
0 answers
819 views

Android notification bar custom content not showing up

When setting my notification to a custom xml file with image buttons, those images don't show properly. Instead I just see a grey box (see below). Here's my xml file: <LinearLayout xmlns:android="...
Michael's user avatar
  • 835
1 vote
1 answer
2k views

How to detect when the notification/system bar is opened

I needed to know when the system/notification bar gets opened in my app, and I couldn't find any real solutions, so I hacked something together which seems to work pretty well.
The Hungry Androider's user avatar
2 votes
0 answers
84 views

Custom notification not working on Oreo - why?

so i've been having this issue for quite sometime now. My notification is not making any sound at all, I've tried changing it into the default sound programmatically and it's not working. I'm ...
Diaz Agasatya's user avatar
2 votes
1 answer
720 views

How to avoid Heads-up notification on android Oreo and above?

I want to show the notification in the background. Means, while user opening the notification screen. But its coming on the top of my app screen. I don't want to show at the top of the my app. I ...
simple's user avatar
  • 159
0 votes
1 answer
571 views

Scheduled notification without icon on Android when using React Native Firebase

I'm building a React Native application using TypeScript. For my scheduled local notifications I use React Native Firebase. On android no icon is shown when the scheduled notification comes in. Here ...
J. Hesters's user avatar
  • 14.7k
4 votes
0 answers
2k views

Notification keeps expanding state by default

Is it possible to keep expand state by default for setCustomBigContentView? It gets collapsed by default when I use setCustomBigContentView method even the size lower than default notification height. ...
Fresco's user avatar
  • 363
0 votes
0 answers
115 views

Notification does not show immediately even provided by a unique id

I check it many times using Logs and prevent the notify() method of manager to be called multiple times if not necessary to avoid some overhead. Now I have first notification with a 0% progress then ...
Mihae Kheel's user avatar
  • 2,631

1
2 3 4 5
8