I have an app where I want to scan an Aztec code into a reader (that also reads NFC). The problem is that this triggers apple pay, and apple pay blocks the screen so that the Aztec cant be read. I need to suppress apple pay to use my app.
This is done by applying to apple and get an entitlement which I have applied to my provisioning profile. Now all I have to do is to add the following code:
PKPassLibrary.RequestAutomaticPassPresentationSuppression((PKAutomaticPassPresentationSuppressionResult r) => { });
And add the entitlement to the Entitlement.plist.
This works for a "clean" app with nothing in it, but does not work for my app.
Any suggestions as to what can be the problem here?
The problem was that the Entitlement.plist was not included in the project. This was done by adding the path to it under "Custom Entitlements"