Sử dụng FlightClass.appLinkData để đặt đường liên kết ứng dụng ở cuối tất cả các thẻ và vé của lớp đó.
Một lợi ích của tính năng liên kết ứng dụng là giúp lời kêu gọi hành động của bạn đưa người dùng đến với trải nghiệm mang thương hiệu của bạn trên Google Wallet. Các đường liên kết có tính năng này sẽ xuất hiện ở cuối thẻ và vé.
Ví dụ về tính năng
Tổ chức phát hành
Đặt đường liên kết đến ứng dụng trên thẻ và vé trong Google Wallet
Đối với một Thẻ lên máy bay nhất định, hãy đặt trường FlightObject.appLinkData thành URI hoặc Tên gói của ứng dụng hoặc trang web.
Xem định dạng và ngữ cảnh của trường appLinkData trong mã nguồn sau:
Trường displayText có giới hạn 30 ký tự.
[null,null,["Cập nhật lần gần đây nhất: 2025-02-28 UTC."],[[["There are four ways to add links to Boarding Passes, including options for linking to all passes of a class or specific passes."],["App linking allows you to guide users to your branded experiences, with links appearing at the bottom of the pass."],["You can set the `FlightObject.appLinkData` field to the URI or package name of your app or website to enable app linking for a Boarding Pass."],["The `appLinkData` field includes options for specifying Android app links, web app links, and display text, with a 30-character limit for display text."],["You can alternatively use `targetUri` under `androidAppLinkInfo` to link to the Play store listing for your app instead of deeplinking to the app directly."]]],["Links can be added to Boarding Passes via `FlightClass.LinksModuleData` (for all passes) or `FlightObject.LinksModuleData` (for specific passes). App links, displayed at the bottom of the Pass, can be added through `FlightObject.appLinkData` (specific pass) or `FlightClass.appLinkData` (all passes). `appLinkData` allows navigation to an app or website, specifying the package name or URI. The display text is limited to 30 characters. Web links are enabled with `webAppLinkInfo` and `androidAppLinkInfo` can direct the user to the Play Store or to the app.\n"]]