PebbleOS v4.47.0-512-g5285d4236
Loading...
Searching...
No Matches
Nexmo reauthentication

Handles the SMS check-in code used to reauthenticate SMS replies. More...

Functions

bool nexmo_is_reauth_sms (const struct pbl_bt_ancs_attr *app_id, const struct pbl_bt_ancs_attr *message)
 Check whether a notification is a reauthentication SMS.
 
void nexmo_handle_reauth_sms (uint32_t uid, const struct pbl_bt_ancs_attr *app_id, const struct pbl_bt_ancs_attr *message, iOSNotifPrefs *existing_notif_prefs)
 Forward a reauthentication SMS to the phone and dismiss it.
 

Detailed Description

Handles the SMS check-in code used to reauthenticate SMS replies.

Function Documentation

◆ nexmo_handle_reauth_sms()

void nexmo_handle_reauth_sms ( uint32_t  uid,
const struct pbl_bt_ancs_attr *  app_id,
const struct pbl_bt_ancs_attr *  message,
iOSNotifPrefs *  existing_notif_prefs 
)

Forward a reauthentication SMS to the phone and dismiss it.

Stores the message in the app's notification prefs as an auth code attribute, which syncs it to the phone, then performs the ANCS negative action so the user never sees it.

Parameters
uidANCS UID of the SMS notification.
app_idApp identifier attribute.
messageMessage attribute.
existing_notif_prefsExisting prefs of the Messages app.

◆ nexmo_is_reauth_sms()

bool nexmo_is_reauth_sms ( const struct pbl_bt_ancs_attr *  app_id,
const struct pbl_bt_ancs_attr *  message 
)

Check whether a notification is a reauthentication SMS.

Parameters
app_idApp identifier attribute.
messageMessage attribute.
Returns
true for a Messages notification containing the Pebble check-in code.