How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?

Hello,

I’m working on creating an NFC-enabled Apple Wallet pass and I need assistance with the proper implementation of the pass.json file to include NFC functionality. My goal is to enable NFC interactions, such as tapping to unlock a door or interacting with other NFC systems.

Here is what I have done so far:

  1. Set up a Pass Type ID and Certificates:
  • I have registered a Pass Type ID in my Apple Developer account.
  • I have generated and installed the required certificates (Pass Type ID certificate and WWDR certificate).
  1. Backend Integration:
  • I have set up a backend service for generating passes, and I can successfully create and deliver standard Wallet passes without the NFC functionality.
  1. Adding the NFC Field:
  • I understand that to enable NFC interactions, I need to add an nfc dictionary to the pass.json file.
  • The key components for NFC include the encryptionPublicKey, message, and payload.

Here’s an example of my current pass.json:

{
  "formatVersion": 1,
  "passTypeIdentifier": "pass.com.example.mypass",
  "serialNumber": "123456",
  "teamIdentifier": "TEAMID12345",
  "webServiceURL": "https://example.com/api/passes",
  "authenticationToken": "my_secure_token",
  "nfc": {
    "message": "Tap to unlock door",
    "encryptionPublicKey": "MY_ENCRYPTION_PUBLIC_KEY",
    "payload": "encrypted_nfc_payload"
  },
  "organizationName": "My Company",
  "description": "NFC-Enabled Access Pass",
  "logoText": "My NFC Pass",
  "foregroundColor": "rgb(255, 255, 255)",
  "backgroundColor": "rgb(0, 0, 0)",
  "barcode": {
    "format": "PKBarcodeFormatQR",
    "message": "https://example.com",
    "messageEncoding": "iso-8859-1"
  }
}

Questions:

  1. Are there any additional steps or configurations required to ensure that NFC is enabled in the pass?

  2. Is there a specific method to test or validate NFC functionality in the pass to debug why it’s not being activated?

Any guidance or solutions to enable NFC in this pass would be greatly appreciated.

Thank You

What is the problem you are having with your pass? NFC Wallet passes need the reader (the door you are testing, etc.) to support the Apple VAS protocol.

Do you have a VAS reader you are testing this with? It will not activate non VAS readers.

@Engineer

Hello,

I am working on creating an NFC-enabled Apple Wallet pass, but I am having trouble getting the NFC functionality to activate. I understand that NFC Wallet passes need to be tested on a reader that supports the Apple VAS (Value Added Services) protocol, but before that, I need to ensure that NFC is properly enabled in my pass.

Above pass.json file i am currently use in my question.

Could you provide a working example of a pass.json file with NFC fully enabled for Apple Wallet? This would help me ensure that my setup is correct.

Thank you for your assistance!

How to Create an NFC-Enabled Wallet Pass with pass.json Including NFC Field?
 
 
Q