mirror of
https://github.com/home-assistant/iOS.git
synced 2026-06-18 11:15:36 -05:00
## Summary Implements a similar pipeline for notification content in the watch as the notification content extension. ## Screenshots https://user-images.githubusercontent.com/74188/116958883-d670a600-ac50-11eb-9578-994ee594a271.mp4 (the video starts playing a bit faster when not recording/debugging)    ## Any other notes - Fixes text input notification actions failing to do anything. Unless we implement the 'suggestions' method (even to just return `[]`) it will fail to show the action, logging something about the `nil` default value being unacceptable. - Fixes attachments downloaded by the service extension not showing up at all. By downloading them again, because Apple fails to correctly give us access to them. - Adds support for lazily downloading attachments, either when not attached or with the lazy flag. - Combines the notification controller (similar to the content extension) for all the various category types.
21 lines
483 B
Plaintext
21 lines
483 B
Plaintext
{
|
|
"aps": {
|
|
"alert": {
|
|
"title": "Massa placerat duis ultricies lacus",
|
|
"body": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. In nulla posuere sollicitudin aliquam."
|
|
},
|
|
"sound": "default",
|
|
"category": "DYNAMIC"
|
|
},
|
|
"actions": [
|
|
{
|
|
"identifier": "REPLY",
|
|
"title": "Lectus Magna",
|
|
},
|
|
{
|
|
"action": "id2",
|
|
"title": "Bibendum Est",
|
|
}
|
|
]
|
|
}
|