-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Notification drawer doesn't close after click on action that navigates you to app #1914
Comments
Hi @andrew-stupchuk |
@Dallas62 What information you need? You can clarify the problem before closing it |
Such as configuration, how you trigger, how you (try to) receive the action, or at least a reproduction exemple. |
In my app i received everything as expected: in my onNotification function i received notification.userInteraction === 'Messages'. The problem is after i click 'Messages' action notification drawer doesn't close. react-native info:
|
https://github.com/zo0r/react-native-push-notification#notification-actions
So |
@Dallas62 sorry, i want to say, that receive notification.action === 'Messages'. |
the notification is removed from notification drawer correctly, but notification drawer doesn't closed. That is my problem. I want to close it after click notification action |
Does the call to
Is there |
no, i don't set it |
You should be able to do this: PushNotification.removeDeliveredNotifications([ notification.id ]) |
this will remove my notification from notification drawer, right? but there is autoCancel prop in |
I just publish the version 7.2.3, |
now everything works as expected, thanks @Dallas62 |
Bug
I have a notification with actions that navigates me to different pages of my app. After i click any of action notification removes from notification drawer but doesn't close it. Click on notification(not actions) doesn't have this problem, all works as expected.
Library version: 7.2.2
react: 16.13.1
react-native: 0.63.3
Steps To Reproduce
...
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: