Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Apple Pay UI when 13.56Mhz detection

I am aware that there is specific new method in iOS 9 that supports Apple Pay suppression for specific scenarios or use cases. I have one of those who need to be applied with the following method:

+ (PKSuppressionRequestToken)requestAutomaticPassPresentationSuppressionWithResponseHandler:(void (^ _Nonnull)(PKAutomaticPassPresentationSuppressionResult result))responseHandler

However, every time we call this method we get the following response: PKAutomaticPassPresentationSuppressionResultDenied (Either the user prevented the suppression, or an internal error occurred)

In the documentation marks as an importante note that:

IMPORTANT This method requires a special entitlement issued by Apple. If the entitlement is not present, the request will fail with a PKAutomaticPassPresentationSuppressionResultNotSupported result. For more information, see developer.apple.com/apple-pay/.

What should we do in order to get the PKAutomaticPassPresentationSuppressionResultSuccess result? We have enabled the Apple Pay in our "Apple ID" and even created a Merchand ID, after that downloaded again the Development Provisioning Profile which includes all this and included in the project. There as well we enabled the "Apple Pay" capability but we still get the PKAutomaticPassPresentationSuppressionResultDenied error.

Testing environment Information:

  • iPhone 6 with an Apple Pay enabled card
  • iOS 9.0.1 (13A404)

Thanks for all

like image 519
GoRoS Avatar asked Oct 05 '15 09:10

GoRoS


People also ask

How do I stop iPhone from suggesting Apple Pay?

If you're seeing notifications about needing to complete the Apple Pay setup process, you do so in your regular Settings app. If you've already set up Apple Pay but don't want it to send you any notifications, you can disable notifications in the Wallet section of the Settings app.

Why does Apple Pay keep popping up on my screen?

ApplePay opens on your phone because you've got your finger resting on the home button while the phone is locked. It can also sometimes open if you double-click the home button while the phone is locked. Happens to me all the time because I'm clumsy. ;-) Can I remove my card from someone else's Apple Pay?

How do I get rid of Apple Pay notifications?

Go to Settings > Notifications > Wallet , turn Allow Notifications off. Go to Settings > Wallet & Apple Pay , turn both the Apple Cash and Double-Click Home Button off. Go to Settings > Safari , scroll to the bottom, turn Check for Apple Pay off.


1 Answers

After opening a private query to the Apple Developer Technical Support (DTS) they told me I had to request a specific entitlement for this purpose via email. In that email I had to justify why should I use this PassKit functionality and how would it be utilized.

Once they made this entitlement available (after some weeks) it was just enough to add it to our provisioning profiles and the requestAutomaticPassPresentationSuppressionWithResponseHandler method would work without any problem.

like image 165
GoRoS Avatar answered Sep 29 '22 15:09

GoRoS