Wait for OSSystemExtensionManager request

I write an app to detect whether the specific system extension existed.

At the init() stage of the SwiftUI view, it will submit the request to get whether the specific system extension existed.

OSSystemExtensionManager.shared.submitRequest(request)

and receive the request using

func request(_ request: OSSystemExtensionRequest, foundProperties properties: [OSSystemExtensionProperties])

then display the result.

However, submitting request is a asynchronous process, I will get the result Not Found before receiving the request.

Is there any way to wait for OSSystemExtensionManager.shared.submitRequest(request) until it finishes its request?

Accepted Reply

Is there any way to wait for OSSystemExtensionManager.shared.submitRequest(request) until it finishes its request?

No. You should model your UI with at least three states:

  • Checking

  • Installed

  • Not installed

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Replies

Is there any way to wait for OSSystemExtensionManager.shared.submitRequest(request) until it finishes its request?

No. You should model your UI with at least three states:

  • Checking

  • Installed

  • Not installed

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"