Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppress Automatic Apple Pay suggestion

Tags:

ios

swift

nfc

I have created an app with core bluetooth frame work, But my IOT device contain both Bluetooth and NFC . So while I get in to NFC range Apple Pay popup triggering .

Is their any way to suppress Apple Pay popup while my app in foreground or background.

like image 417
Mc Sibi Avatar asked Jun 12 '18 09:06

Mc Sibi


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.

How do I turn off Apple Pay 2022?

On iPhone or iPad, open the Settings app, tap Wallet & Apple Pay, then turn off Apple Cash.

What is automatic selection in Apple Wallet?

Automatic Selection: Select the pass where it's requested. Share Pass: Send the pass to a friend using Mail or Messages. Remove Pass: Delete the pass from all your devices where you're signed in with your Apple ID.


1 Answers

First, I would have thought you would be able to make a Bluetooth connection without getting close enough for the NFC to be detected, but that isn't your question.

You can suppress the ApplePay display when your app is in the foreground by calling requestAutomaticPassPresentationSuppression(responseHandler:) from the PassKit framework.

Note that:

This method requires a special entitlement issued by Apple. If the entitlement is not present, the request will fail with a PKPassLibrary result.

Specifically, you need the com.apple.developer.passkit.pass-presentation-suppression entitlement.

If this app is for your own use you should be able to just add this entitlement to your entitlements file. To submit it to the App Store you will need to contact Apple to get this entitlement.

You cannot suppress ApplePay when your app is not in the foreground.

like image 195
Paulw11 Avatar answered Oct 20 '22 02:10

Paulw11