Sử dụng EventClass.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 vé sự kiện nhất định, hãy đặt trường EventObject.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 event tickets, including using `EventClass` or `EventObject` properties for general links and `appLinkData` for app-specific links at the bottom of the pass."],["App linking allows you to direct users to your app or website directly from the Google Wallet pass, enhancing user engagement."],["To enable app linking, set the `EventObject.appLinkData` or `EventClass.appLinkData` field to the URI or package name of your app or website."],["The `appLinkData` field supports linking to both Android and web apps, providing flexibility in your call-to-action."],["When setting app links, ensure the `displayText` is limited to 30 characters for optimal display on the pass."]]],["Links can be added to event tickets in four ways: using `EventClass.LinksModuleData` for all tickets in a class, `EventObject.LinksModuleData` for a specific ticket, `EventObject.appLinkData` for an app link on a specific pass, or `EventClass.appLinkData` for an app link on all passes of a class. App links, which appear at the bottom of the pass, navigate users to branded experiences. `EventObject.appLinkData` can be set to an app's URI or package name, using either `androidAppLinkInfo` or `webAppLinkInfo`. The display text for the link is limited to 30 characters.\n"]]