Użyj FlightClass.appLinkData, aby umieścić link do aplikacji u dołu wszystkich kart tej klasy.
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 pokładowego ustaw w polu FlightObject.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.
[null,null,["Ostatnia aktualizacja: 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"]]