PebbleOS
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
ancs_notifications_util.h File Reference
#include <applib/graphics/gtypes.h>
#include <comm/ble/kernel_le_client/ancs/ancs_types.h>
#include <time.h>

Data Structures

Macros

#define IOS_PHONE_APP_ID   "com.apple.mobilephone"
 Bundle identifier of the iOS Phone app.
 
#define IOS_CALENDAR_APP_ID   "com.apple.mobilecal"
 Bundle identifier of the iOS Calendar app.
 
#define IOS_REMINDERS_APP_ID   "com.apple.reminders"
 Bundle identifier of the iOS Reminders app.
 
#define IOS_MAIL_APP_ID   "com.apple.mobilemail"
 Bundle identifier of the iOS Mail app.
 
#define IOS_SMS_APP_ID   "com.apple.MobileSMS"
 Bundle identifier of the iOS Messages app.
 
#define IOS_FACETIME_APP_ID   "com.apple.facetime"
 Bundle identifier of the iOS FaceTime app.
 

Functions

const ANCSAppMetadata * ancs_notifications_util_get_app_metadata (const ANCSAttribute *app_id)
 Look up the presentation of an app.
 
time_t ancs_notifications_util_parse_timestamp (const ANCSAttribute *timestamp_attr)
 Parse an ANCS date attribute.
 
bool ancs_notifications_util_is_phone (const ANCSAttribute *app_id)
 Check whether an app identifier is the iOS Phone app.
 
bool ancs_notifications_util_is_sms (const ANCSAttribute *app_id)
 Check whether an app identifier is the iOS Messages app.
 
bool ancs_notifications_util_is_group_sms (const ANCSAttribute *app_id, const ANCSAttribute *subtitle)
 Check whether a notification is a group message.