Esistono quattro modi per aggiungere link a una carta fedeltà.
Utilizza LoyaltyClass.LinksModuleData
per aggiungere i link a tutte le carte fedeltà associate al
LoyaltyClass.
Utilizza LoyaltyObject.LinksModuleData
per aggiungere un link a una carta fedeltà specifica LoyaltyObject.
Utilizza LoyaltyObject.appLinkData per inserire un link all'app nella parte inferiore del pass in questione.
Utilizza LoyaltyClass.appLinkData per inserire un link all'app in fondo a tutti i passaggi del corso.
Uno dei vantaggi del collegamento delle app è che consente al tuo invito all'azione di indirizzare gli utenti alle tue esperienze correlate al brand da Google Wallet. I link con questa funzionalità vengono visualizzati nella parte inferiore
della tessera.
Esempio di funzionalità
Emittente
Impostare il link all'app sulla tessera Google Wallet
Per una determinata carta fedeltà, imposta il campo LoyaltyObject.appLinkData
sull'URI o sul nome del pacchetto della tua app o del tuo sito web.
Visualizza il formato e il contesto del campo appLinkData nel seguente codice sorgente:
Il campo displayText ha un limite di 30 caratteri.
[null,null,["Ultimo aggiornamento 2025-02-28 UTC."],[[["There are four ways to add links to a loyalty card, including using `LoyaltyClass.LinksModuleData`, `LoyaltyObject.LinksModuleData`, `LoyaltyObject.appLinkData`, and `LoyaltyClass.appLinkData`."],["App linking allows you to direct users to your branded experiences (app or website) from Google Wallet passes, with links appearing at the bottom of the pass."],["The `appLinkData` field can be used to set the URI or Package name of your app or website for a given loyalty card."],["The `displayText` field within `appLinkData` is limited to 30 characters and is used to display a call-to-action on the pass."],["`appLinkData` supports linking to Android apps using package names or Play Store URLs and websites using URIs."]]],["Links can be added to loyalty cards via `LoyaltyClass.LinksModuleData` (for all cards) or `LoyaltyObject.LinksModuleData` (for a specific card). App links, set using `LoyaltyObject.appLinkData` or `LoyaltyClass.appLinkData`, appear at the bottom of the Pass, enabling navigation to branded experiences. `appLinkData` includes fields for Android or web app links, with `displayText` limited to 30 characters. Deep linking requires `webAppLinkInfo` and the target URI.\n"]]