Clarification on PKPassLibrary.requestAutomaticPassPresentationSuppression Behavior

We are implementing a feature that uses PKPassLibrary.requestAutomaticPassPresentationSuppression to prevent the Wallet from appearing when unlocking a lock. We have already completed the approval process for the entitlement to enable Pass Presentation Suppression.

In most cases, our code snippet works as expected, and the result is .success. However, we are also encountering other results, such as .denied, .alreadyPresenteding, and .cancelled, .notSupported, which cause the Wallet to appear for users.

Here's the code snippet we're using:

PKPassLibrary.requestAutomaticPassPresentationSuppression { result in
    logger.log(
        .info,
        "PKPassLibrary suppression result: \(result.description)",
        LogContext.homeFeature
    )
}

We would appreciate clarification on the following points:

Could you explain the meaning of each result type (.denied, .alreadyPresenting, .canceled, .notSupported) beyond what is mentioned in the documentation? The documentation here does not provide additional details.

What is the recommended handling for these specific result states? Should we be taking different actions or retries based on each case?

ThankS!

Clarification on PKPassLibrary.requestAutomaticPassPresentationSuppression Behavior
 
 
Q