Sử dụng OfferClass.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 mặt hàng cụ thể, hãy đặt trường OfferObject.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 an offer, including using `OfferClass.LinksModuleData`, `OfferObject.LinksModuleData`, `OfferObject.appLinkData`, and `OfferClass.appLinkData`."],["App linking enhances call-to-action by directing users to branded experiences from Google Wallet, with links displayed at the bottom of the Pass."],["You can set the `OfferObject.appLinkData` field to the URI or Package name to enable app linking for a specific offer."],["The `appLinkData` field allows you to specify `androidAppLinkInfo` and `webAppLinkInfo` for deep linking into your app or website, with a customizable `displayText` limited to 30 characters."],["While linking to the Play Store is possible using `targetUri` within `androidAppLinkInfo`, it's recommended to utilize `packageName` for a direct in-app experience."]]],["Links can be added to offers in four ways: using `OfferClass.LinksModuleData` for all offers, `OfferObject.LinksModuleData` for a specific offer, `OfferObject.appLinkData` for a particular pass's app link, or `OfferClass.appLinkData` for all passes of that class' app links. App links, which appear at the bottom of the pass, let the user navigate to branded experiences. `OfferObject.appLinkData` accepts app URIs or package names, with `displayText` limited to 30 characters. `webAppLinkInfo` supports deep linking.\n"]]