I can’t set custom notification sound and vibration pattern for android oreo and above. For earlier versions of android everything works as it should. I wrote my code based on these answers: Custom notification sound , android Oreo?, Custom Notification Sound not working in Android Oreo and others. But none of this had the desired result. The notification comes, but
Tag: notifications
How I can replay to WhatsApp notification from java code in android studio
Hello guys I’m using NotificationListenerService to get WhatsApp messages But now I have a problem that I don’t know how to replay to WhatsApp notifications So here is the code and how I’m getting WhatsApp notifications but my problem is in how actually to replay on them } Answer Did you try using this function? You can get Notification.Action for
Android Java Notification Not Displaying
This is my first time working with Notifications and I can’t seem to figure out the issue. What I am Trying To do: In short, I have a service that checks for a variable in a firebase document, if it’s true, show a notification. And before you say it, I can’t use Cloud Functions in this scenario. I’ll explain, everything
Notification comes in notification list but not pop ups on main screen
I am sharing two images please have a look on it you will understand my problem in fist image notification comes successfully as shown better me notification but I want it to come and show first on main screen as shown in second image just this telegram notification. first image second image Answer If I understand correctly, you would like
Android FCM notification is not received when app is close or Killed
I implemented FCM Push Notifications. The main problem is when app is closed, notifications not arrive when this happen on device. I tried a lot of thigs for that works; when notification sent the server response with “success”, but I never received. Manifest.xml Answer Try adding enabled=”true” and INTERNAL_SERVICE permission to your message service
NotificationCompat – how to add action without icon?
Above code creates notification and adds one action (button) to it. I want my button to be without icon displayed, but I don’t know how to do that, because icon in parameter addAction is required and not nullable. Is it even possible to add action button to notification without any icon (btw, icons on action buttons seems to be not
How to show a notification without a sound java
How can I make a notification that doesn’t make a sound when I build it? I am building a notification, and my users don’t like the fact that it makes a sound. How can I change it to a silent one / no sound at all? How I show notification: I tried to search on google, but the only results
Android notification with RemoteViews – having activity associated with RemoteViews layout
I’ve been researching on how to create custom-layout notification using RemoteView. So far, I am able to create a notification with contentView and bigContentView pointing to a RemoteView with a custom layout xml. However, what does not happen, is to have Activity (associated with custom layout) started when this RemoteView is created. I’ve double checked and in my layout xml,