跳到主要内容

移除通知 - 动作

使用场景

移除不重要的通知。下方的通知内容尾部都有>符号,我们可以通过这个特征移除通知。

通知标题通知内容
XX空调年货节特惠中🤩爆款空调至高闪降200元!更有限量立减等你来!让它温暖你的团圆时刻🧡戳>
优惠券到账提醒您有1张优惠券到账,优惠总额10元,最高可满11元减10元,今日就花掉它吧~ 戳此查看>>
(1)通知[钱包通知]:你的账户于 2023-01-08 17:00左右 收到提醒,充话费满【¥50元】减【¥30元】😍,数量有限,先到先得,立即秒杀>>

功能演示

1.gif

导入规则

导入规则以后需要将规则添加应用组才可以使用。

{"notificationChannels":[],"packageGroups":[],"rules":[{"actionSettings":[{"blackExec":true,"delay":0,"event":0,"lockExec":true,"runDateRanges":"0, 1, 2, 3, 4, 5, 6","runRandomCount":3,"runRandomCountFail":0,"runTimeRanges":"","unlockExec":true}],"barrage":{"content":"$c_all","position":0,"speed":5,"subtitle":"$s_all","time":2,"title":"$t_all"},"broadcast":{"scenes":[],"text":""},"clickButton":{"buttonGroup":[],"suspendedTip":false,"time":0,"tip":false,"tipText":""},"clickNotification":{"suspendedTip":false,"time":0,"tip":false,"tipText":""},"config":"{}","copy":{"text":"","tip":false},"easyShares":[],"event":[0],"fixed":{"channel":"","content":"$c_all","subtitle":"$s_all","title":"$t_all"},"openApps":[],"output":{"contentVariable":"// 内容变量\n$c_all \u003d .+","subtitleVariable":"// 副标题变量\n$s_all \u003d .+","titleVariable":"// 标题变量\n$t_all \u003d .+"},"popup":{"content":"$c_all","subtitle":"$s_all","title":"$t_all"},"range":[],"remove":{"hour":0,"minute":0,"second":0},"ringtone":{"path":"","playCount":1,"scenes":[]},"rule":{"delayRun":0,"isAutoUpgrade":true,"isLocking":false,"isUpload":false,"price":0,"rUid":"d060ea59-98b7-4de4-9e03-454e99a90ff3","ruleButton":"","ruleButtonType":0,"ruleChannel":"","ruleChannelType":0,"ruleContent":"","ruleContentType":0,"ruleDescription":"无","ruleMatchType":1,"ruleName":"移除所有通知","ruleNotification":"","ruleNotificationType":0,"ruleSubTitle":"","ruleSubTitleType":0,"ruleTitle":"","ruleTitleType":0,"runDateRanges":"0, 1, 2, 3, 4, 5, 6","runRandomCount":3,"runRandomCountFail":0,"runTimeRanges":[],"uuid":"b94d2a5c-d235-4fb0-8e1a-89fae2d1168c","versionCode":0},"share":{"content":"$c_all","subtitle":"$s_all","title":"$t_all"},"shareToApp":{"packageName":"","shareConfig":"[]","sharePath":"","uriAuthority":""},"shareToServer":{"method":"POST","shareDataConfig":"[]","shareHeaderConfig":"[]","url":"http://"},"shortcuts":[],"testNotificationList":[],"tip":{"channel":"","content":"$c_all","subtitle":"$s_all","title":"$t_all"},"vibration":{"count":1,"scenes":[],"times":""}}],"versionCode":20,"versionName":"3.0.0"}

创建规则

2.jpg

小技巧

如果需要使用延迟移除通知移除重复通知移除应用之前通知请参考下方的教程:

启用规则高级设置

高级功能

延迟移除通知

根据设置的时间延迟移除。

移除重复的通知或复读机。

标题内容
xxx群张三: 收到
xxx群李四: 收到
xxx群王五: 收到

如果你只想要第一条通知剩下的通知都移除可以使用移除重复通知功能。

3.jpg

  • 如何知道是重复通知?

是根据匹配方式匹配的的通知进行判断。

4.jpg

比如上图的匹配方式就会匹配到如下结果:

xxx群收到“这就是用来判断是否有重复的通知方式。

  • 什么是重复通知检测时间

就是在这个时间范围内有重复的通知就会移除。

5.png

移除应用之前通知

如果规则匹配成功后会移除之前没有匹配成功的通知。

是否匹配成功通知标题通知内容
张三我是张三,我这条通知没有匹配成功。通知不会被移除。
李四我是李四,我这条通知没有匹配成功。通知不会被移除。
王五我是王五,我这条通知匹配成功了。 通知会被移除张三和李四的通知也会一起移除。