tasker 中文文档 下载 App

Tasker AutoNotification 详解 创建自定义通知 带按钮回复 自动回复消息

AutoNotification 是什么

AutoNotification 是 joaoapps(就是 Tasker 开发者本人)出品的 Tasker 配套插件中最常用的一个。它解决的核心问题:Android 原生通知功能太弱。

原生通知的限制:

AutoNotification 把这些能力全部解锁了——它是 Tasker 做"智能通知"场景的必备插件。

三大核心能力

1. 创建高级通知(Action)

用 AutoNotification Action 创建比原生更丰富的通知:

可以自定义:

高级样式:

2. 自动拦截和读取通知(Event / State Context)

AutoNotification 还可以作为 Context:

这个能力让 Tasker 可以"看见"其他 App 的通知内容并据此触发自动化:

Profile:收到老板消息时特殊提醒
  Event → AutoNotification → 新通知
  参数:包含微信、Slack、Telegram 的通知
  AND
  State → Variable Value → %antext ~ .*老板|CEO|紧急.*(通知内容包含关键词)

Enter Task:
  1. Say(大声朗读)→ "%anapp 有重要消息"
  2. Vibrate Pattern → 长震动
  3. Flash → 红色闪烁
  4. Do Not Disturb → 临时关闭 30 秒(让消息能弹出)
  5. Notify → "重要消息:%antext"

3. 自动回复消息(Action + Event 组合)

结合读取通知能力和 AutoNotification 的回复按钮,实现"自动回复 + 让用户手动回复"的混合方案:

Profile:开车时自动回复
  State → Bluetooth Connected → 车载蓝牙
  AND
  Event → AutoNotification → 新通知(来自消息 App)

Enter Task:
  1. AutoNotification → 创建"自动回复中"的通知(带两个按钮)
  2. Button 1 → "自动回复" → 执行 Auto Reply Task(发送预设回复)
  3. Button 2 → "手动回复" → 打开对应 App
  4. 不做任何操作等用户决定

AutoNotification vs 原生 Tasker Notify

维度Tasker 原生 NotifyAutoNotification
按钮数0最多 5 个
回复功能❌✅ 弹出输入框
自定义程度低高(颜色、样式、布局)
拦截其他通知❌✅ 核心功能
自动回复❌✅ 核心功能
免费✅ Tasker 内置❌ 付费插件

AutoNotification 实战示例

示例一:智能消息通知

Profile:消息智能分类
  Event → AutoNotification → 新通知
  条件:来源 App = 微信 / 钉钉 / Telegram

Enter Task:
  # 优先级判断
  If → %antext ~ .*紧急|立刻|立即|URGENT|ASAP.*
    # 高优先级:大声朗读 + 强震动
    1. Do Not Disturb → 临时关闭
    2. Say → "紧急消息:%antext"
    3. Vibrate Pattern → 3 长 3 短
    4. Flash → 红色
  Else If → %antext ~ .*老板|经理|CEO.*
    # 中优先级:普通提醒
    1. Notify → "来自 %ansender"
    2. Sound → 特殊声音
  Else
    # 普通优先级:安静通知
    1. Notify(不弹出)→ "新消息"
  Endif

示例二:常驻状态仪表盘

在通知栏放一个常驻仪表盘:

Task:更新仪表盘通知
  1. 获取当前各种状态到变量(%BATT、%WIFII、%AUTOPROFILES 等)
  2. AutoNotification → 更新已有的常驻通知
     标题:"仪表盘"
     正文:"电量 %BATT · Wi-Fi %WIFII · 激活 Profile %AUTOPROFILES"
     按钮 1 → "一键省电"
     按钮 2 → "暂停自动化"

示例三:批量回复 WhatsApp 消息

Profile:WhatsApp 未读批量处理
  State → AutoNotification → WhatsApp 有未读消息(超过 3 条)
Enter Task:
  # 创建一个带选项的通知
  AutoNotification → 创建通知
    标题:"WhatsApp 有 %anunread 条未读"
    按钮 1 → "全部标记已读" → 执行 Task MarkAllRead
    按钮 2 → "自动回复'稍后回'" → 执行 Task AutoReplyAll
    按钮 3 → "忽略" → 什么都不做

安装与权限

安装

必须授予的权限

Tasker 集成

安装后,在 Tasker 里就能看到:

第一次用时 Tasker 会弹出权限申请,点允许即可。

AutoNotification 的局限

替代方案(不想买插件时)