コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Firebase Dynamic Links
plat_ios
plat_android
plat_web
plat_flutter
plat_cpp
plat_unity
Firebase Dynamic Links は、アプリのインストールの有無にかかわらず、複数のプラットフォームにおいてユーザーが必要とする方法で機能するリンクです。
Dynamic Links を使用すると、ユーザーがリンクを開いたプラットフォームで得られる最高のエクスペリエンスを提供できるようになります。iOS または Android で Dynamic Link を開くと、ネイティブアプリのリンク先のコンテンツに直接移動します。パソコンのブラウザで同様の Dynamic Link を開くと、ウェブサイト上の同じコンテンツに移動します。
さらに、Dynamic Links はアプリのインストールが必要な場面でも利用できます。たとえば、Dynamic Link を開いたユーザーの iOS デバイスまたは Android デバイスにアプリがインストールされていない場合にインストールを促し、インストール完了後にアプリを起動してリンクを開くといったこともできます。
仕組み
Dynamic Link は、Firebase コンソール、REST API、iOS または Android ビルダー API を使用して作成します。または、アプリ固有のドメインに Dynamic Link パラメータを追加して URL を設定することで作成できます。これらのパラメータは、ユーザーのプラットフォームとアプリがインストールされているかどうかに応じて、開くリンクを指定します。
ユーザーが Dynamic Links を開くと、アプリがまだインストールされていない場合は Play ストアや App Store に転送され(そのように指定した場合のみ)、アプリのインストールが完了するとアプリが開きます。その後、アプリに渡されたリンクを取得し、アプリに適した方法でディープリンクを処理できます。
カスタムリンク ドメイン
独自のドメイン名を使って Dynamic Links を作成できます。
https://example.com/summer-sale
https://example.com/links/promos/summer-sale
https://links.example.com/summer-sale
https://ex.amp.le/summer-sale
アプリ用のドメインがない場合は、無料のカスタム サブドメインである page.link を使用できます。
https://example.page.link/summer-sale
Firebase コンソールでサブドメインを無料で作成します。
分析、インストール後のアトリビューション、SDK 統合など、Dynamic Links のすべての機能は、page.link カスタム ドメインと独自ドメインのいずれでも機能します。
実装パス
|
Firebase と Dynamic Links SDK を設定する |
Firebase コンソールで Firebase プロジェクトの Firebase Dynamic Links を有効にします。次に、アプリに Dynamic Links SDK を追加します。 |
|
Dynamic Links を作成する |
Dynamic Links は、プログラムで作成することも、Firebase コンソールを使用して作成することもできます。 |
|
アプリで Dynamic Links を処理する |
アプリが開くときに、Dynamic Link が渡されたかどうかを Dynamic Links SDK を使用して確認します。その場合、Dynamic Link データからリンクを取得し、必要に応じて処理します。 |
|
アナリティクス データを表示 |
Firebase コンソールで Dynamic Links のパフォーマンスをトラッキングします。 |
次のステップ
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-19 UTC。
[null,null,["最終更新日 2025-08-19 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| **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."]]