Firebase Dynamic Links پیوندهایی هستند که به روشی که شما می خواهید، روی چندین پلتفرم کار می کنند و خواه برنامه شما قبلاً نصب شده باشد یا نه.
با Dynamic Links ، کاربران شما بهترین تجربه موجود را برای پلتفرمی که پیوند شما را در آن باز می کنند، دریافت می کنند. اگر کاربر یک Dynamic Link را در iOS یا Android باز کند، میتواند مستقیماً به محتوای پیوند شده در برنامه اصلی شما منتقل شود. اگر کاربر همان Dynamic Link در یک مرورگر دسکتاپ باز کند، میتواند به محتوای مشابه در وبسایت شما منتقل شود.
علاوه بر این، Dynamic Links در نصب برنامهها کار میکند: اگر کاربری یک Dynamic Link را در iOS یا Android باز کند و برنامه شما را نصب نکرده باشد، میتوان از کاربر درخواست کرد آن را نصب کند. سپس، پس از نصب، برنامه شما شروع می شود و می تواند به پیوند دسترسی پیدا کند.
چگونه کار می کند؟
یا با استفاده از کنسول Firebase ، با استفاده از REST API، iOS یا Android Builder API، یا با ایجاد یک URL با افزودن پارامترهای Dynamic Link به دامنه ای خاص برای برنامه خود، یک Dynamic Link ایجاد می کنید. این پارامترها بسته به پلتفرم کاربر و نصب بودن اپلیکیشن شما، لینک هایی را که می خواهید باز کنید مشخص می کند.
وقتی کاربری یکی از Dynamic Links شما را باز میکند، اگر برنامه شما هنوز نصب نشده باشد، کاربر برای نصب برنامه شما به Play Store یا App Store فرستاده میشود (مگر اینکه خلاف آن را مشخص کرده باشید)، و برنامه شما باز میشود. سپس می توانید پیوندی را که به برنامه شما ارسال شده است بازیابی کنید و پیوند عمیق را مطابق با برنامه خود مدیریت کنید.
یا، اگر دامنه ای برای برنامه خود ندارید، می توانید از یک زیر دامنه سفارشی page.link بدون هزینه استفاده کنید:
https://example.page.link/summer-sale
زیر دامنه خود را بدون هیچ هزینه ای در کنسول Firebase ایجاد کنید.
همه ویژگیهای Dynamic Links ، از جمله تجزیه و تحلیل، اسناد پس از نصب، و ادغامهای SDK، هم با دامنههای page.link سفارشی و هم با دامنه خودتان کار میکنند.
مسیر پیاده سازی
Firebase و Dynamic Links SDK را راه اندازی کنید
Firebase Dynamic Links را برای پروژه Firebase خود در کنسول Firebase فعال کنید. سپس، Dynamic Links SDK را در برنامه خود قرار دهید.
ایجاد Dynamic Links
می توانید Dynamic Links به صورت برنامه نویسی یا با استفاده از کنسول Firebase ایجاد کنید.
Dynamic Links در برنامه خود مدیریت کنید
هنگامی که برنامه شما باز می شود، از Dynamic Links SDK استفاده کنید تا بررسی کنید که آیا Dynamic Link به آن ارسال شده است یا خیر. اگر چنین است، پیوند عمیق را از داده های Dynamic Link دریافت کنید و در صورت لزوم پیوند عمیق را مدیریت کنید.
مشاهده داده های تجزیه و تحلیل
عملکرد Dynamic Links خود را در کنسول Firebase پیگیری کنید.
مراحل بعدی
با برخی از رایج ترین موارد استفادهFirebase Dynamic Links و نحوه پیاده سازی آنها آشنا شوید.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[],[],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| **Deprecated:** Firebase Dynamic Links is *deprecated* and should not be adopted in projects that don't already use it. The service will shut down on August 25, 2025. 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."]]