Contents

getTokenWithCompletion(_:)

Retrieves and stores the token associated with your app.

Declaration

class func getTokenWithCompletion(_ completionHandler: @escaping  @Sendable (String?, (any Error)?) -> Void)
class func token() async throws -> String

Parameters

  • completionHandler:

    A closure the framework calls with the retrieved token and any error that occurs.

Discussion

Your app has 30 seconds to call this method after the system generates the token before the system invalidates it. The framework maps the token to the ICCID associated with the original MFMessageComposeViewController instance used for UPI device validation.