跳至内容

Siri 与快捷指令

PushWard 内置 App Intents,因此你可以直接在设备上通过 Siri、快捷指令 App 和个人自动化来驱动它,在 Android 上则可通过快捷设置磁贴和启动器快捷方式。无需集成密钥,也无需调用 API。

将在应用版本 1.5.0 中推出

本节介绍的功能来自一个正在等待 App Store 审核的应用更新。更新上线后,此处会自动解锁。

On Android: Quick Settings tiles and launcher shortcuts

Android has no Siri or Shortcuts app, so the Android app offers two Quick Settings tiles and three launcher shortcuts instead. Like the actions above, they run as the signed-in user and need no hlk_ key.

  • Trigger Action -- a Quick Settings tile that fires one of your widgets' silent webhook actions: a tap, primary or secondary action that has a method, headers or a body. Pick the action under Settings > Quick Settings in the app, which also adds the tile for you (on Android 12, open Quick Settings, tap Edit and drag the PushWard tile into place). The tile shows when the request is sending, sent, or did not go through.
  • Open Notifications -- a Quick Settings tile that opens your notification inbox.
  • Launcher shortcuts -- long-press the PushWard icon for Open Activities, Open Notifications and Open Widgets, or drag one onto the home screen.

Widget actions themselves are set up through the widgets API.