Questions tagged [notification-action]

20 questions
10
votes
2 answers

Android Notification with Actions and a DropDown Menu

Android's Google app has a Notification which shows the local weather for example. If you swipe left on the notification, it shows a "clock icon"-action (e.g. Snooze) as shown below. If you click on the clock, the following dropdown menu…
the_dani
  • 2,466
  • 2
  • 20
  • 46
9
votes
1 answer

Show android notification action buttons expanded by default

Is there a way to show action buttons in notification expanded by default? I use ongoing notification to control traning process in my app. I want controling buttons such as "Stop" and "Pause" to be visible right after notification appeared in the…
4
votes
1 answer

Adding Dynamic Actions to UNNotificationCategory

I am currently facing an issue where I need to be able to change the actions of a UNNotificationCategory based on information sent with the notification. Currently my categories are set up similarly to this: func registerNotificationSettings(){ …
3
votes
2 answers

BroadcastReceiver context registration not working

I'm working on a project where I need to register a BroadcastReceiver and send a broadcast to it from a Notification Action. Please tell me if there is something glaring that I'm doing wrong. I don't want the receiver to be registered in the…
3
votes
0 answers

iOS notification custom actions (buttons) -- best practices of handling errors when no GUI

I have an iOS messaging app with custom notification actions (buttons that are shown when the notification is expanded on iOS 10+). Some actions need to trigger a REST call to my server without launching the app UI…
2
votes
2 answers

Dismiss UserNotificationsUI - UNNotificationContentExtensionResponseOption

I am setting multiple local Notification and I have set number of actions to notification . like snooze , show , close . func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping…
2
votes
0 answers

Notification.Action with multiple RemoteInputs - why and how?

TL;DR version: I've noticed that an action-able notification in Android can be assigned with multiple instances of RemoteInput - but couldn't find a scenario in which this is useful, and not even sure how to properly use this potential…
1
vote
0 answers

Android BroadcastReceiver firing with delay upon notification action click

I am trying to run a Retry routine upon notification action click, for this, I have created a BroadcastReceiver and also registered it in the AndroidManifest file. While creating the notification with action I am using PendingIntent and setting that…
1
vote
1 answer

Apple Watch Notification Actions not working when iPhone companion app is terminated watch OS 5.3.2

I am working on iOS app which is supported watch as well below is my concerns. watch os - 5.3.2 and iOS 13.1 I am facing problem with notification actions in watch app. when iPhone app is terminated and if I get a notification in watch , if I tap on…
1
vote
0 answers

Android Notification Actions with Notification Channeling

I am working on an application where we have to generate a notification with action buttons. It was working fine till the date we decided to update our notification handling to support notification channels (released with Android Oreo 8.0). I don't…
1
vote
1 answer

BroadcastReceiver does not get data from notification button

I am trying to make notification with remove button, notifications are stored in SQLite DB and after the press, I want to remove "record" by id. Firstly I get a notification, store it to db , store unique id and pass it to a method which creates a…
Zolo
  • 176
  • 1
  • 2
  • 14
1
vote
1 answer

Trigger function on notification action click

I am writing an app in Kotlin that should display a notification with an action button. I have a class. Let's call it NotificationClass This class creates notifications for me via fun createNotification() This all works fine. But I want to add a…
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

Flutter Notifications: Handle direct reply to chat notifications with flutter_local_notifications input action

I am using Flutter to create a chat app. I have added flutter_local_notifications plugin along with Firebase Messaging to handle the notifications. I am using MessagingStyleNotification for showing chat notifications and have added a reply feature…
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()…
1
2