Apple Wallet boarding pass integration in mobile app

TRUETECH is engaged in the development, support and maintenance of iOS, Android, PWA mobile applications. We have extensive experience and expertise in publishing mobile applications in popular markets like Google Play, App Store, Amazon, AppGallery and others.
Development and support of all types of mobile applications:
Information and entertainment mobile applications
News apps, games, reference guides, online catalogs, weather apps, fitness and health apps, travel apps, educational apps, social networks and messengers, quizzes, blogs and podcasts, forums, aggregators
E-commerce mobile applications
Online stores, B2B apps, marketplaces, online exchanges, cashback services, exchanges, dropshipping platforms, loyalty programs, food and goods delivery, payment systems.
Business process management mobile applications
CRM systems, ERP systems, project management, sales team tools, financial management, production management, logistics and delivery management, HR management, data monitoring systems
Electronic services mobile applications
Classified ads platforms, online schools, online cinemas, electronic service platforms, cashback platforms, video hosting, thematic portals, online booking and scheduling platforms, online trading platforms

These are just some of the types of mobile applications we work with, and each of them may have its own specific features and functionality, tailored to the specific needs and goals of the client.

Showing 1 of 1 servicesAll 1735 services
Apple Wallet boarding pass integration in mobile app
Medium
~2-3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_mobile-applications_feedme_467_0.webp
    Development of a mobile application for FEEDME
    757
  • image_mobile-applications_xoomer_471_0.webp
    Development of a mobile application for XOOMER
    624
  • image_mobile-applications_rhl_428_0.webp
    Development of a mobile application for RHL
    1054
  • image_mobile-applications_zippy_411_0.webp
    Development of a mobile application for ZIPPY
    947
  • image_mobile-applications_affhome_429_0.webp
    Development of a mobile application for Affhome
    874
  • image_mobile-applications_flavors_409_0.webp
    Development of a mobile application for the FLAVORS company
    445

Apple Wallet Integration for Boarding Passes in Mobile Apps

A boarding pass in Apple Wallet is a boardingPass-type .pkpass archive with strict field requirements: transitType is mandatory, and the structure of primaryFields/auxiliaryFields determines what users see on the lock screen. An error in transitType or missing required fields will cause Apple Wallet to display an "Invalid Pass Format" message.

Boarding Pass Structure

{
  "formatVersion": 1,
  "passTypeIdentifier": "pass.com.yourairline.boarding",
  "serialNumber": "FLIGHT-SU123-20240615-IVANOV",
  "teamIdentifier": "ABCDE12345",
  "organizationName": "YourAirline",
  "description": "Boarding Pass SU 123",
  "foregroundColor": "rgb(255,255,255)",
  "backgroundColor": "rgb(0,60,130)",
  "boardingPass": {
    "transitType": "PKTransitTypeAir",
    "primaryFields": [
      { "key": "origin", "value": "SVO", "label": "From" },
      { "key": "destination", "value": "LED", "label": "To" }
    ],
    "auxiliaryFields": [
      { "key": "flight", "value": "SU 123", "label": "Flight" },
      { "key": "seat", "value": "14A", "label": "Seat" },
      { "key": "date", "value": "2024-06-15T07:30+03:00", "label": "Departure",
        "dateStyle": "PKDateStyleShort", "timeStyle": "PKDateStyleShort" }
    ],
    "backFields": [
      { "key": "terms", "label": "Conditions", "value": "23 kg baggage included" }
    ],
    "barcode": {
      "message": "M1IVANOV/IVAN       ABCDEF SVO LED SU 0123 165Y014A0047 100",
      "format": "PKBarcodeFormatAztec",
      "messageEncoding": "iso-8859-1"
    }
  },
  "relevantDate": "2024-06-15T07:00+03:00"
}

transitType values: PKTransitTypeAir, PKTransitTypeTrain, PKTransitTypeBus, PKTransitTypeBoat, PKTransitTypeGeneric. The type affects the transport icon in the pass header.

For aviation, the barcode format is PKBarcodeFormatAztec (IATA 2D Barcode standard). QR codes also work, but Aztec codes read faster in poor lighting.

relevantDate and Geolocation

relevantDate displays the pass on the lock screen 15–30 minutes before the event. For airports, add locations:

"locations": [
  {
    "latitude": 55.9729,
    "longitude": 37.4146,
    "relevantText": "Check in for flight SU 123"
  }
]

Wallet will notify users when they're near the airport.

Dynamic Fields: Real-time Flight Status Updates

The primary need for airlines is to update fields in real time. Wallet supports this via APN push:

  1. When a pass is added, the device registers itself via POST /v1/devices/{deviceLibraryIdentifier}/registrations/{passTypeIdentifier}/{serialNumber}
  2. When data changes (flight delay, gate change), the server sends a push to the pushToken from the registration request
  3. The device requests the updated .pkpass and replaces the old one

APN push payload for Wallet is minimal:

{
  "aps": {}
}

An empty aps object tells Wallet to handle it. No notification text is needed.

Server-Side Generation and Signing

The archive is built on-the-fly for each passenger. Each pass is unique: serialNumber should identify the specific flight and passenger. After changing any file in the archive, recalculate manifest.json and regenerate signature.

On Node.js, use passkit-generator:

import { PKPass } from "passkit-generator";

const pass = await PKPass.from({
  model: "./models/boarding-pass.pass",
  certificates: {
    wwdr: fs.readFileSync("./certs/wwdr.pem"),
    signerCert: fs.readFileSync("./certs/pass.pem"),
    signerKey: fs.readFileSync("./certs/pass.key"),
  },
  overrides: {
    serialNumber: `FLIGHT-SU123-${passengerId}`,
    description: `Boarding Pass ${flightNumber}`,
  },
});

pass.setBarcodes({
  message: bcbpData,
  format: "PKBarcodeFormatAztec",
  messageEncoding: "iso-8859-1",
});

const buffer = pass.getAsBuffer();

Timeline

2–3 days for server-side generation, signing, device registration, and push-based flight status updates. Pricing is calculated individually.