Disable an alert when suppressing the Apple Pay

Hello all!


In our app we use a suppression API to disable the Apple Pay on a particular screen. It's needed to scan a QR-code on a device with an NFC chip.

guard PKPassLibrary.isPassLibraryAvailable(), !PKPassLibrary.isSuppressingAutomaticPassPresentation() else {
            Logger.shared.info("Could not suppress Automatic Pass Presentation")
            return
        }
        tokenPKSuppresion = PKPassLibrary.requestAutomaticPassPresentationSuppression(responseHandler: { (result) in
            if result == PKAutomaticPassPresentationSuppressionResult.success {
                Logger.shared.info("Automatic Pass Presentation suppressed")
            }
        })


This code works perfectly fine, but the system shows an alert when this method is invoked for the first time.

So my question: are there any ways to customize or disable this alert? It looks a little bit confusing for a user.


Thank you in advance!

Replies

I am dealing with precisely the same issue. Wouldn't be great if you could customize the message like say "Privacy - Camera Usage Description" in info.plist.


Cheers