checkAuthorizationStatus(for:)
Confirms the current authorization status for sending critical messages from this app.
Declaration
func checkAuthorizationStatus(for recipients: [MSRecipient]) async throws -> [MSRecipient : MSCriticalMessagingAuthorizationStatus]Parameters
- recipients:
An array of recipients to check the authorization status for.
Mentioned in
Return Value
A dictionary that maps recipients to their corresponding authorization status.
Discussion
You can call this method multiple times to check the authorization status for multiple recipients. Upon an error, the method throws an error of `MSCriticalMessagingErrorDomain``.