|
PebbleOS
|
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. | |
Handles the SMS check-in code used to reauthenticate SMS replies.
| 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.
| uid | ANCS UID of the SMS notification. |
| app_id | App identifier attribute. |
| message | Message attribute. |
| existing_notif_prefs | Existing prefs of the Messages app. |
| bool nexmo_is_reauth_sms | ( | const ANCSAttribute * | app_id, |
| const ANCSAttribute * | message | ||
| ) |
Check whether a notification is a reauthentication SMS.
| app_id | App identifier attribute. |
| message | Message attribute. |