Firebase Dynamic Links là những đường liên kết hoạt động theo cách bạn muốn, trên nhiều nền tảng, bất kể ứng dụng của bạn đã được cài đặt hay chưa.
Với Dynamic Links, người dùng sẽ có được trải nghiệm tốt nhất có thể trên nền tảng mà họ mở đường liên kết của bạn. Nếu người dùng mở một Dynamic Link trên iOS hoặc Android, họ có thể được chuyển thẳng đến nội dung được liên kết trong ứng dụng gốc của bạn. Nếu người dùng mở cùng một Dynamic Link trong trình duyệt máy tính, họ có thể được chuyển đến nội dung tương đương trên trang web của bạn.
Ngoài ra, Dynamic Links hoạt động trên các lượt cài đặt ứng dụng: nếu người dùng mở một Dynamic Link trên iOS hoặc Android và chưa cài đặt ứng dụng của bạn, thì người dùng có thể được nhắc cài đặt ứng dụng; sau đó, sau khi cài đặt, ứng dụng của bạn sẽ khởi động và có thể truy cập vào đường liên kết.
Tính năng này hoạt động như thế nào?
Bạn tạo Dynamic Link bằng cách sử dụng bảng điều khiển Firebase, sử dụng REST API, iOS hoặc Android Builder API, hoặc bằng cách tạo một URL bằng cách thêm các tham số Dynamic Link vào một miền dành riêng cho ứng dụng của bạn. Các tham số này chỉ định những đường liên kết mà bạn muốn mở, tuỳ thuộc vào nền tảng của người dùng và việc ứng dụng của bạn có được cài đặt hay không.
Khi người dùng mở một trong các Dynamic Links, nếu ứng dụng của bạn chưa được cài đặt, thì người dùng sẽ được chuyển đến Cửa hàng Play hoặc App Store để cài đặt ứng dụng của bạn (trừ phi bạn chỉ định cách khác) và ứng dụng của bạn sẽ mở ra. Sau đó, bạn có thể truy xuất đường liên kết đã được truyền đến ứng dụng của mình và xử lý đường liên kết sâu một cách phù hợp cho ứng dụng.
Hoặc nếu không có miền cho ứng dụng của mình, bạn có thể sử dụng một miền con tuỳ chỉnh miễn phí trên page.link:
https://example.page.link/summer-sale
Tạo miền con miễn phí trong bảng điều khiển Firebase.
Tất cả các tính năng Dynamic Links, bao gồm cả số liệu phân tích, thuộc tính sau khi cài đặt và các chế độ tích hợp SDK, đều hoạt động với cả miền page.link tuỳ chỉnh và miền của riêng bạn.
Đường dẫn triển khai
Thiết lập Firebase và Dynamic Links SDK
Bật Firebase Dynamic Links cho dự án Firebase của bạn trong bảng điều khiển Firebase. Sau đó, hãy thêm SDK Dynamic Links vào ứng dụng của bạn.
Tạo Dynamic Links
Bạn có thể tạo Dynamic Links theo phương thức lập trình hoặc bằng cách sử dụng bảng điều khiển Firebase.
Xử lý Dynamic Links trong ứng dụng
Khi ứng dụng của bạn mở, hãy dùng SDK Dynamic Links để kiểm tra xem có Dynamic Link nào được truyền đến ứng dụng hay không. Nếu có, hãy lấy đường liên kết sâu từ dữ liệu Dynamic Link và xử lý đường liên kết sâu khi cần.
Xem dữ liệu phân tích
Theo dõi hiệu suất của Dynamic Links trong bảng điều khiển Firebase.
Các bước tiếp theo
Tìm hiểu về một số Firebase Dynamic Linkstrường hợp sử dụng phổ biến nhất và cách triển khai các trường hợp đó.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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."]]