PebbleOS
Loading...
Searching...
No Matches
Modules | Functions
ANCS notifications

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.
 

Detailed Description

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).

Function Documentation

◆ ancs_notifications_handle_access_denied()

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.

◆ ancs_notifications_handle_message()

void ancs_notifications_handle_message ( uint32_t  uid,
ANCSProperty  properties,
ANCSAttribute **  notif_attributes,
ANCSAttribute **  app_attributes 
)

Handle a notification fetched from ANCS.

Parameters
uidANCS UID of the notification.
propertiesANCS properties (category, flags, iOS version).
notif_attributesNotification attributes, indexed by FetchedNotifAttributeIndex.
app_attributesApp attributes, indexed by FetchedAppAttributeIndex.

◆ ancs_notifications_handle_notification_removed()

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.

Parameters
ancs_uidANCS UID of the removed notification.
propertiesANCS properties.