Jedną z zalet linkowania aplikacji jest to, że umożliwia ona wykorzystanie wezwania do działania do przekierowania użytkowników do Twoich treści z elementami marki w Portfelu Google. Linki do tej funkcji znajdują się u dołu karty.
Przykład funkcji
Wystawca
Ustawianie linku do aplikacji na karcie Portfela Google
W przypadku danego dokumentu na przewóz ustaw w polu TransitObject.appLinkData identyfikator URI lub nazwę pakietu swojej aplikacji lub witryny.
Format i kontekst pola appLinkData możesz sprawdzić w tym kodzie źródłowym:
Pole displayText ma ograniczenie do 30 znaków.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["There are four ways to add links to a transit pass, including associating links with all passes of a class or individual passes."],["App linking empowers call-to-actions within Google Wallet passes, allowing navigation to branded experiences by placing links at the bottom of the pass."],["The `appLinkData` field is used to configure the link, accepting a URI or package name and allowing for Android or web app targets."],["The `displayText` field, with a 30-character limit, is used to customize the link's display within the Google Wallet pass."]]],["Links can be added to transit passes via `TransitClass.LinksModuleData` (for all passes) or `TransitObject.LinksModuleData` (for a specific pass). App links, displayed at the bottom of passes, can be added using `TransitObject.appLinkData` (specific pass) or `TransitClass.appLinkData` (all passes of that class). `appLinkData` utilizes `androidAppLinkInfo` or `webAppLinkInfo` to link to an app or website, respectively, with a maximum of 30 characters in the `displayText`.\n"]]