接收近期航班的通知
Google 電子錢包會在
檔期。航班時間的定義如下:
class.localScheduledDepartureDateTime
。
如要接收這類通知,使用者必須啟用通知功能。他們可以
依序點選「設定」圖示 >通知,並查看票證最新消息
已開啟。
該通知會顯示在通知區域和螢幕鎖定畫面中 (如果使用者
已啟用螢幕鎖定通知功能。
通知的格式如下 (此格式無法修改):
Boarding pass for your flight to class.destination.airportIataCode
使用者輕觸通知並解鎖裝置後,票證就會顯示在 Google 錢包應用程式中。
如果使用者擁有多張票證,系統只會顯示最快使用的票證。如果他們將項目加入群組
如將多份登機證分組一節所述,通知只會顯示其中一張票證
即可。不過使用者輕觸通知時,可以向左或向右滑動來查看其他票證
該群組。
使用者開啟通知後,該通知會固定顯示且不會自動關閉,發生 60 次自動關閉的情形
分鐘 (在 class.localScheduledDepartureDateTime
過後)。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-02-28 (世界標準時間)。
[null,null,["上次更新時間:2025-02-28 (世界標準時間)。"],[[["Google Wallet sends a flight boarding pass notification three hours before the scheduled departure time, as indicated by `class.localScheduledDepartureDateTime`."],["Users must enable \"Updates about your passes\" in notification settings to receive these alerts, which appear in the notification area and, if enabled, the lock screen."],["The notification displays a fixed format message: \"Boarding pass for your flight to `class.destination.airportIataCode`,\" and opening it leads to the relevant pass in the Google Wallet app."],["For users with multiple passes, only the next upcoming pass is shown in the notification; grouped passes display one pass initially, with the ability to swipe and view others within the group."],["This pinned notification remains visible after being opened and automatically dismisses 60 minutes after the scheduled departure time."]]],["Google Wallet sends a flight notification three hours before the scheduled departure (`class.localScheduledDepartureDateTime`), provided notifications are enabled in **Settings \u003e Notifications** under \"Updates about your passes.\" The notification, visible on the lock screen if enabled, displays \"Boarding pass for your flight to [destination airport code]\". Tapping it opens the pass in the Wallet app. Only the soonest pass appears, but grouped passes are accessible via swiping. The notification remains pinned until 60 minutes post-departure.\n"]]