approveSuspend

public final JsonObject approveSuspend(Context context, String authenticationMethod, Integer numberMatchingPickedValue)

Approves the current mobile push authentication request (suspend version).

This suspend function should be invoked after the user approves the push notification on their device (for example, using fingerprint, face recognition, or number matching). It reports the authentication result back to the PingOne platform.

The authenticationMethod parameter identifies the method used to authenticate the user, as defined in RFC 8176 — Authentication Method Reference (AMR). Examples include:

  • fpt — Fingerprint

  • face — Facial recognition

  • otp — One-time passcode

Return

a JsonObject containing confirmation information, or null.

Parameters

context

the application Context.

authenticationMethod

the authentication method used on the device.

numberMatchingPickedValue

the number selected by the user during number matching, or null if number matching was not used.

Throws

if the approval process fails.