You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
What do I want?
I want to be able to remotely trigger the removal of all existing notifications via a hidden notification.
Why do I want it?
Because my notifications are time-sensitive and they become irrelevant after a couple hours.
Why not do it in the "Send custom payload -> pass it to JS -> have JS call plugin to clear all notifications" workflow?
It seems convoluted to me to do it that way and it introduces multiple points of failure. The code to clear notifications must be native, so why not just make it a feature?
I'll have a PR attached to this ASAP so you can take a look at the code.
Note that I don't know objective-c so I just made a thing that works but to which you'll likely cringe. Java is likely easy to improve as well.
The text was updated successfully, but these errors were encountered:
Expected Behaviour
You send a notification with a "data" payload containing a "clearAllNotifications": "true" key, and the existing notifications disappear.
Actual Behaviour
N/A
Reproduce Scenario (including but not limited to)
N/A
Steps to Reproduce
N/A
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Any platform where code may be run when a notification is received.
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
N/A
Cordova CLI version and cordova platform version
N/A
Plugin version
Developed and tested on 2.1.2
Sample Push Data Payload
Sample Code that illustrates the problem
See PR when it's made
Logs taken while reproducing problem
N/A
What do I want?
I want to be able to remotely trigger the removal of all existing notifications via a hidden notification.
Why do I want it?
Because my notifications are time-sensitive and they become irrelevant after a couple hours.
Why not do it in the "Send custom payload -> pass it to JS -> have JS call plugin to clear all notifications" workflow?
It seems convoluted to me to do it that way and it introduces multiple points of failure. The code to clear notifications must be native, so why not just make it a feature?
I'll have a PR attached to this ASAP so you can take a look at the code.
Note that I don't know objective-c so I just made a thing that works but to which you'll likely cringe. Java is likely easy to improve as well.
The text was updated successfully, but these errors were encountered: