mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-26 20:16:52 +00:00
1.1 KiB
1.1 KiB
layout, title, description, date, sidebar, comments, sharing, footer
layout | title | description | date | sidebar | comments | sharing | footer |
---|---|---|---|---|---|---|---|
page | Basic Notifications | Basic notes about iOS notifications | 2016-10-25 15:00:00 -0700 | true | false | true | true |
The iOS notify platform accepts the standard title
, message
and target
parameters.
Notes:
-
title
only displays on Apple Watch and iOS 10 devices. -
target
can be used to specific a single device using its PushID, found inios.conf
. The preferred way of providing a target is through a target specific notify service.
{% linkable_title Enhancing basic notifications %}
Badge
You can set the icon badge in the payload:
automation:
- alias: Notify iOS app
trigger:
...
action:
service: notify.iOSApp
data:
message: "Something happened at home!"
data:
push:
badge: 5
Subtitle
iOS 10 supports a subtitle in addition to the title:
automation
- alias: Notify iOS app
trigger:
...
action:
service: notify.iOSApp
data:
message: "Something happened at home!"
data:
subtitle: "Subtitle goes here"