cancelLocalNotification does not cancel a notification with tag
Create a local notification with tag
PushNotification.localNotification({
channelId: 'DELIVERY',
id: '123',
tag: 'DELIVERY',
title: "Title",
message: "Message"
});
Try to cancel it with the id as documented:
PushNotification.cancelLocalNotification('123');
It does not get cancelled. If I dont add a tag to the notification using cancelLocalNotification works.
Hi @andidev
For delivered notification, you can use:
PushNotification. clearNotification(tag, id);
Regards
I tried that as well but it throws an error unfortunately.
@andidev Did you solved?
@KoreanThinker unfortunately not. I had to switch to switch to notifee which in turn also have some similar cancelation bug 😂
use cancelLocalNotifications({id: 1})
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.