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.
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.
On iPhone or iPad, open the Settings app, tap Wallet & Apple Pay, then turn off Apple Cash.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With