|
PebbleOS
|
Turns notifications received over the Apple Notification Center Service into items. More...
Modules | |
| ANCS filtering | |
| Per-app mute schedules and filtering rules for ANCS notifications. | |
| ANCS items | |
| Builds timeline items from ANCS notifications. | |
| ANCS utilities | |
| App identification and timestamp parsing for ANCS notifications. | |
| ANCS phone calls | |
| Phone call events derived from ANCS notifications. | |
| Nexmo reauthentication | |
| Handles the SMS check-in code used to reauthenticate SMS replies. | |
Functions | |
| void | ancs_notifications_handle_message (uint32_t uid, ANCSProperty properties, ANCSAttribute **notif_attributes, ANCSAttribute **app_attributes) |
| Handle a notification fetched from ANCS. | |
| void | ancs_notifications_handle_notification_removed (uint32_t ancs_uid, ANCSProperty properties) |
| Handle the removal of a notification from the iOS notification center. | |
| void | ancs_notifications_handle_access_denied (void) |
| Tell the user that iOS refuses to share notifications with this watch. | |
Turns notifications received over the Apple Notification Center Service into items.
The ANCS client hands over the fetched notification and app attributes. Each app seen is recorded in the iOS notification preferences database, which the phone syncs to add actions, colors, mute schedules and filtering rules. Muted and filtered notifications are dropped, incoming calls go to the phone service, duplicates are ignored, and the rest are stored as notifications (see Notifications).
| void ancs_notifications_handle_access_denied | ( | void | ) |
Tell the user that iOS refuses to share notifications with this watch.
Called when iOS keeps rejecting Control Point writes. Posts a notification explaining how to turn on notification sharing.
| void ancs_notifications_handle_message | ( | uint32_t | uid, |
| ANCSProperty | properties, | ||
| ANCSAttribute ** | notif_attributes, | ||
| ANCSAttribute ** | app_attributes | ||
| ) |
Handle a notification fetched from ANCS.
| uid | ANCS UID of the notification. |
| properties | ANCS properties (category, flags, iOS version). |
| notif_attributes | Notification attributes, indexed by FetchedNotifAttributeIndex. |
| app_attributes | App attributes, indexed by FetchedAppAttributeIndex. |
| void ancs_notifications_handle_notification_removed | ( | uint32_t | ancs_uid, |
| ANCSProperty | properties | ||
| ) |
Handle the removal of a notification from the iOS notification center.
Only honored on iOS 9 and later: the stored notification is marked dismissed, and an incoming call UI is hidden.
| ancs_uid | ANCS UID of the removed notification. |
| properties | ANCS properties. |