Departure Time no longer displayed on lock screen notifications for Passes (iOS 18.1)

With the relevantDate field deprecated for Apple passes as of 18.1 https://developer.apple.com/documentation/passkit_apple_pay_and_wallet/pkpass/1618776-relevantdate, boarding pass notifications on the lock screen no longer seem to display the departure time. Is there a way to show this again?

Would semantic tags (Semantics.currentDepartureDate) or the new PkPass.releaseDates field help?

Answered by darkpaw in 816133022

Ah, I think you need to use an array of [RelevantDates]. Minor change, but important, it seems.

Deprecated just means something will be removed in future, but it should still function now.

Do you have some code that might help us out?

The issue seems to be the way in which ios 18.1.1 reads the information in a pass (.pkpass ) file

On earleir iOS versions, the pass.JSON below would show the departure date on the lockscreen notification for boarding passes (due to the "relevantDate" field). It looks like as of 18.1.1, it no longer does this.

{ ...

"semantics": {},

"passTypeIdentifier": "123",

"formatVersion": 1,

"serialNumber": "ABC",

"description": "Description",

"organizationName": "Organization",

"teamIdentifier": "1234567abc",

"sharingProhibited": false,

"userInfo": {},

"relevantDate": "2024-11-30T12:35:00+00:00",

.... }

Ah, I think you need to use an array of [RelevantDates]. Minor change, but important, it seems.

Departure Time no longer displayed on lock screen notifications for Passes (iOS 18.1)
 
 
Q