Contents

isSupported

A Boolean value that indicates whether a particular device provides the App Attest service.

Declaration

var isSupported: Bool { get }

Mentioned in

Discussion

If you read isSupported from within an app extension, the value might be true or false, depending on the extension type. However, most extensions don’t support App Attest. The generateKey(completionHandler:) method fails when you call it from an app extension, regardless of the value of isSupported.

The only app extensions that support App Attest are watchOS extensions in watchOS 9 or later. For these extensions, you can use the results from isSupported to indicate whether your WatchKit extension bypasses attestation.

See Also

Accessing the service