Firebase Dynamic Links to linki, które działają tak, jak chcesz, na wielu platformach, niezależnie od tego, czy aplikacja jest już zainstalowana.
Dzięki Dynamic Links użytkownicy mogą korzystać z najlepszych dostępnych funkcji na platformie, na której otwierają Twój link. Jeśli użytkownik otworzy Dynamic Link na urządzeniu z iOS lub Androidem, może zostać przekierowany bezpośrednio do połączonych treści w Twojej aplikacji natywnej. Jeśli otworzy ten sam Dynamic Link w przeglądarce na komputerze, może zostać przekierowany do odpowiednich treści w Twojej witrynie.
Dodatkowo Dynamic Linksdziałają w przypadku instalacji aplikacji: jeśli użytkownik otworzy Dynamic Link na iOS lub Androidzie i nie ma zainstalowanej aplikacji, może pojawić się prośba o jej zainstalowanie. Po instalacji aplikacja uruchomi się i będzie mieć dostęp do linku.
Jak to działa?
Dynamic Link możesz utworzyć za pomocą Firebase konsoli, interfejsu REST API, interfejsu iOS lub Android Builder API albo tworząc adres URL przez dodanie parametrów Dynamic Link do domenyDynamic Link specyficznej dla Twojej aplikacji. Parametry te określają linki, które mają się otwierać w zależności od platformy użytkownika i tego, czy aplikacja jest zainstalowana.
Gdy użytkownik otworzy jeden z Twoich Dynamic Links, a Twoja aplikacja nie jest jeszcze zainstalowana, zostanie przekierowany do Sklepu Play lub App Store, aby ją zainstalować (chyba że określisz inaczej), a następnie aplikacja zostanie otwarta. Możesz wtedy pobrać link, który został przekazany do aplikacji, i odpowiednio go obsłużyć.
Jeśli nie masz domeny aplikacji, możesz użyć bezpłatnej subdomeny custom.page.link:
https://example.page.link/summer-sale
Utwórz bezpłatnie subdomenę w Firebase konsoli.
Wszystkie funkcje Dynamic Links, w tym analityka, atrybucje po instalacji i integracje pakietu SDK, działają zarówno w przypadku niestandardowych domen page.link, jak i Twojej własnej domeny.
Ścieżka implementacji
Konfigurowanie Firebase i pakietu Dynamic Links SDK
Włącz Firebase Dynamic Links w projekcie Firebase w Firebasekonsoli. Następnie dodaj Dynamic Linkspakiet SDK do aplikacji.
UtwórzDynamic Links
Możesz tworzyć Dynamic Links automatycznie lub za pomocą konsoli Firebase.
Obsługa Dynamic Links w aplikacji
Po uruchomieniu aplikacji użyj pakietu SDK Dynamic Links, aby sprawdzić, czy został do niej przekazany Dynamic Link. Jeśli tak, pobierz precyzyjny link z danych Dynamic Link i obsłuż go zgodnie z potrzebami.
Wyświetlanie danych analitycznych
Śledź skuteczność Dynamic Links w Firebase.
Dalsze kroki
Poznaj niektóre z najczęstszych Firebase Dynamic Linksprzypadków użycia i dowiedz się, jak je wdrożyć.
[[["Ł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-08-28 UTC."],[],[],null,["Firebase Dynamic Links \nplat_ios plat_android plat_web plat_flutter plat_cpp plat_unity \n\nFirebase Dynamic Links are links that work the way you want, on multiple\nplatforms, and whether or not your app is already installed. \n| **Note:** Firebase Dynamic Links is *deprecated* and should not be used in new projects. The service will be shutting down soon. Follow the [migration guide](/support/dynamic-links-faq#how_should_i_migrate_from_the_service) and see the [Dynamic Links Deprecation FAQ](/support/dynamic-links-faq) for more information.\n\nWith Dynamic Links, your users get the best available experience for the\nplatform they open your link on. If a user opens a Dynamic Link on iOS or Android,\nthey can be taken directly to the linked content in your native app. If a user\nopens the same Dynamic Link in a desktop browser, they can be taken to the equivalent\ncontent on your website.\n\nIn addition, Dynamic Links work across app installs: if a user opens a Dynamic Link on\niOS or Android and doesn't have your app installed, the user can be prompted to\ninstall it; then, after installation, your app starts and can access the link.\n\nHow does it work?\n\nYou create a Dynamic Link either by using the Firebase console, using a REST\nAPI, iOS or Android Builder API, or by forming a URL by adding Dynamic Link parameters to a domain\nspecific to your app. These parameters specify the links you want to open, depending on the\nuser's platform and whether your app is installed.\n\nWhen a user opens one of your Dynamic Links, if your app isn't yet installed, the\nuser is sent to the Play Store or App Store to install your app (unless you\nspecify otherwise), and your app opens. You can then retrieve the link that\nwas passed to your app and handle the deep link as appropriate for your app.\n\nCustom link domains\n\nYou can [create Dynamic Links using\nyour own domain name](/docs/dynamic-links/custom-domains): \n\n```\nhttps://example.com/summer-sale\nhttps://example.com/links/promos/summer-sale\nhttps://links.example.com/summer-sale\nhttps://ex.amp.le/summer-sale\n```\n\nOr, if you don't have a domain for your app, you can use a no-cost custom\npage.link subdomain: \n\n```\nhttps://example.page.link/summer-sale\n```\n\nCreate your subdomain at no charge in the Firebase console.\n\nAll Dynamic Links features, including analytics, post-install attributions, and\nSDK integrations, work with both custom page.link domains and your own\ndomain.\n\nImplementation path\n\n|---|-----------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | **Set up Firebase and the Dynamic Links SDK** | Enable Firebase Dynamic Links for your Firebase project in the Firebase console. Then, include the Dynamic Links SDK in your app. |\n| | **Create Dynamic Links** | You can create Dynamic Links programmatically or by using the Firebase console. |\n| | **Handle Dynamic Links in your app** | When your app opens, use the Dynamic Links SDK to check if a Dynamic Link was passed to it. If so, get the deep link from the Dynamic Link data and handle the deep link as necessary. |\n| | **View analytics data** | Track the performance of your Dynamic Links in the Firebase console. |\n\nNext steps\n\n- Learn about some of Firebase Dynamic Links' most common [use cases](/docs/dynamic-links/use-cases) and how to implement them.\n- Learn how to [create\n Dynamic Links](/docs/dynamic-links/create-links) and then receive them in your [iOS](/docs/dynamic-links/ios/receive), [Android](/docs/dynamic-links/android/receive), [Flutter](/docs/dynamic-links/flutter/receive), [Unity](/docs/dynamic-links/unity/receive), and [C++](/docs/dynamic-links/cpp/receive) apps.\n- Use your own [custom\n domain](/docs/dynamic-links/custom-domains) for Dynamic Links.\n- Understand your Dynamic Links's performance with two [analytics](/docs/dynamic-links/analytics) tools."]]