PebbleOS
Loading...
Searching...
No Matches
Functions
Nexmo reauthentication

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

Functions

bool nexmo_is_reauth_sms (const ANCSAttribute *app_id, const ANCSAttribute *message)
 Check whether a notification is a reauthentication SMS.
 
void nexmo_handle_reauth_sms (uint32_t uid, const ANCSAttribute *app_id, const ANCSAttribute *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 ANCSAttribute *  app_id,
const ANCSAttribute *  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 ANCSAttribute *  app_id,
const ANCSAttribute *  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.