Questions tagged [android-notification-action]

7 questions
8
votes
1 answer

on android 12 how to close the notification drawer when tap on the action button

When tap on notification's action button, if it is handled in a service the notification drawer could be closed with public void onReceive(final Context context, final Intent intent) { ... ... Intent it = new…
lannyf
  • 9,865
  • 12
  • 70
  • 152
1
vote
1 answer

Using alarm sound instead of default notification sound in Android

I'm trying to send an alarm like notification that stays on the screen and plays the alarm sound until it's closed. I tried setting the alarm sound on the notification channel and on the notification itself but nothing seems to work, the…
0
votes
0 answers

flutter local notification button action not recognised by any event

I'm trying to add action for my notification displayed by flutter local notification. However I've added the action and the action button is also displayed on both android and ios but there is no event getting triggered on tap of that action…
0
votes
0 answers

Easiest Python framework for implementing Android notifications with buttons

I'm looking for a mobile app development Python framework (possibly Kivy or Flet or something similar) that allows me to build an Android app with local push notifications that have buttons. So far I have seen the following: Make dynamic…
Eddy
  • 6,661
  • 21
  • 58
  • 71
0
votes
0 answers

Android Notification Not clickable in Unity

We are facing a problem in unity is, when clicked on the scheduled notification in android. The app does not open. We have firebase messaging in the app so it uses the activity "com.google.firebase.MessagingUnityPlayerActivity". When a scheduled…
0
votes
0 answers

Android Chrome Notification - Notification Tray doesn't hide after clicking notification action

I am using the ServiceWorker Notification API in Android Chrome to show notifications with actions. I am using notifications with tag and silent: true, but that should not matter. The notificationclick handler finds a WindowClient and calls focus()…
0
votes
1 answer

How to perform a custom task from a action button click in notification?

I have a notification in my app and I want to perform a custom task on clicking of the action in the notification. I have done this to add a action: timerNotificationBuilder.addAction(0, "STOP", null /*What to add here ?*/ ); But, I want to stop a…