Apple Pass Suppression Not Working

I have Been Experiencing Issues with my app, i have activated the apple pay suppression entitlement (i have done the process to enable the pass for my app) and it was working for a while, yet recently, the apple pay pop up is displayed when my app is launched, simply the wallet app is automatically launched whilst my app is in the foreground, this issue was first seen with iOS 14.

Is there a documentation regarding what was changed on the API ? Thanks in advance.

i have been using this code to handle the suppression :

`@objc public class ApplePaySupressionHelper: NSObject { private static var tokenPKSuppresion:PKSuppressionRequestToken!;

public static func suppress() {
    if #available(iOS 9, *) {
        if( PKPassLibrary.isPassLibraryAvailable() && !PKPassLibrary.isSuppressingAutomaticPassPresentation()) {
            tokenPKSuppresion = PKPassLibrary.requestAutomaticPassPresentationSuppression(responseHandler: { (result) in
                if result == PKAutomaticPassPresentationSuppressionResult.success {
                    log.debug("Automatic Pass Presentation suppressed")
                }
                else {
                    log.debug("Could not suppress Automatic Pass Presentation")
                }
            })
        }
    }
}

public static func enable() {
    if #available(iOS 9, *) {
        if( PKPassLibrary.isPassLibraryAvailable() && PKPassLibrary.isSuppressingAutomaticPassPresentation()) {
            PKPassLibrary.endAutomaticPassPresentationSuppression(withRequestToken: tokenPKSuppresion)
            print("Automatic Pass Presentation enabled")
        }
    }
}

}`

Hi @Andolsi_Amine. How do you created the entitlement?

Hello @Andolsi_Amine, have you solved this problem? I have a react native App and I'm using the same code to prevent iOS users from automatically open the Wallet app. We give them a QR code to use public transport but when they approach to the QR code reader the wallet is being automatically opened. It was working fine (without presenting the wallet) until a week ago.

I'm experiencing the same problem with my app. It has been working since 2021, but I've been encountering this issue, likely since July. Does anyone have a fix for this?

Apple Pass Suppression Not Working
 
 
Q