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")
}
}
}
}`