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
Copy file name to clipboardExpand all lines: source/_components/notify.apns.markdown
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,19 @@ notify:
22
22
name: NOTIFIER_NAME
23
23
platform: apns
24
24
cert_file: cert_file.pem
25
+
topic: topic
25
26
```
26
27
27
28
Configuration variables:
28
29
29
30
- **name** (*Required*): The name of the notifier. The notifier will bind to the service `notify.NOTIFIER_NAME`.
30
-
- **sandbox** (*Optional*): If true notifications will be sent to the sandbox (test) notification service. Default false.
31
31
- **cert_file** (*Required*): The certificate to use to authenticate with the APNS service.
32
+
- **topic** (*Required*): The app bundle ID specified in the certificate.
33
+
- **sandbox** (*Optional*): If true notifications will be sent to the sandbox (test) notification service. Default false.
32
34
33
-
The APNS platform will register two services, `notify.NOTIFIER_NAME` and `apns.NOTIFIER_NAME`.
35
+
The APNS platform will register two services, `notify.NOTIFIER_NAME` and `notify.apns_NOTIFIER_NAME`.
34
36
35
-
### apns.NOTIFIER_NAME
37
+
### notify.apns_NOTIFIER_NAME
36
38
37
39
This service will register device id's with home assistant. In order to receive a notification a device must be registered. The app on the device can use this service to send an ID to Home Assistant during startup, the ID will be stored in `[NOTIFIER_NAME]_apns.yaml`.
38
40
@@ -47,7 +49,7 @@ This service will send messages to a registered device. The following parameters
47
49
- **target**: The desired state of the device, only devices that match the state will receive messages. To enable state tracking a registered device must have a `tracking_device_id` attribute added to the `[NOTIFIER_NAME]_apns.yaml` file. If this ID matches a device in `known_devices.yaml` the device state will be tracked.
48
50
49
51
- **data**:
50
-
* **badge**: The number to display as the badge of the app ic.
51
-
* **sound**: The name of a sound file in the app bundle or in the Library/Sounds folder.
52
-
* **category**: Provide this key with a string value that represents the identifier property of the UIMutableUserNotificationCategory.
53
-
* **content_available**: Provide this key with a value of 1 to indicate that new content is available.
52
+
* **badge**: The number to display as the badge of the app ic.
53
+
* **sound**: The name of a sound file in the app bundle or in the Library/Sounds folder.
54
+
* **category**: Provide this key with a string value that represents the identifier property of the UIMutableUserNotificationCategory.
55
+
* **content_available**: Provide this key with a value of 1 to indicate that new content is available.
0 commit comments