將 Firebase Dynamic Links 與免安裝應用程式搭配使用
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
警告:Google Play 免安裝應用程式將停止提供服務。2025 年 12 月起,您無法透過 Google Play 發布免安裝應用程式,且所有 Google Play 服務免安裝 API 都將停止運作。Play 不會再透過任何機制向使用者提供免安裝應用程式。
我們根據開發人員的意見,並持續投入資源改善 Google Play Instant 推出後的生態系統,做出這項變更。
如要持續促進使用人數成長,建議開發人員使用深層連結,將使用者導向標準版應用程式或遊戲,並在適當情況下將他們重新導向至特定路徑或功能。
Google Play 免安裝應用程式支援多個深層連結程式庫,例如 Branch。
如果目前使用的深層連結解決方案未列出,或發現該方案不支援 Google Play 免安裝應用程式,請考慮使用 Firebase Dynamic Links。本頁說明如何在免安裝應用程式專案中設定 Firebase Dynamic Links。
主要優點
- 使用 Firebase Dynamic Links 包裝連結,可確保使用者點選連結時,一律會前往免安裝應用程式。否則,應用程式可能會強制在應用程式內瀏覽器中開啟連結,而非免安裝應用程式。Firebase Dynamic Links 可讓您控管連結點擊行為。
- Firebase Dynamic Links 可讓您追蹤點擊、初次開啟、重新開啟和安裝等事件的數據分析。Google Analytics for Firebase 也會記錄 Dynamic Links 事件。
將 Firebase Dynamic Links 與免安裝應用程式專案整合
您可以將 Firebase Dynamic Links 與免安裝應用程式專案整合,方式與整合標準 Android 應用程式相同。
整合 Firebase 動態連結後,您只要將androidFallbackLink 參數設為免安裝應用程式連結即可。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2025-07-27 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-27 (世界標準時間)。"],[],[],null,["# Use Firebase Dynamic Links with instant apps\n\n**Warning:** Google Play Instant will no longer be available. Starting December 2025,\nInstant Apps cannot be published through Google Play, and all\n[Google Play services Instant APIs](https://developers.google.com/android/reference/com/google/android/gms/instantapps/package-summary)\nwill no longer work. Users will no longer be served Instant Apps by Play using any\nmechanism.\n\nWe're making this change based on developer feedback and our continuous investments\nto improve the ecosystem since the introduction of Google Play Instant.\n\nTo continue optimizing for user growth, we encourage developers to refer users to\ntheir regular app or game, using [deeplinks](https://support.google.com/googleplay/android-developer/answer/12463044)\nto redirect them to specific journeys or features when relevant.\n\nSeveral deep linking libraries are compatible with Google Play Instant\nsuch as [Branch](https://branch.io).\n\nIf your current deep linking solution isn't listed or if you find that it\ndoesn't work with Google Play Instant, consider using Firebase Dynamic\nLinks. This page describes how to set up Firebase Dynamic Links in an instant\napp project.\n\n### Key benefits\n\n- **Wrapping your links with Firebase Dynamic Links guarantees that clicks on\n links always take users to your instant app.** Otherwise, apps can force links to be opened inside an in-app browser instead of an instant app. Firebase Dynamic Links allows you to control the behavior of clicks on links.\n- **Firebase Dynamic Links allows you to track analytics on events like clicks,\n first-opens, re-opens, and installs.** Dynamic Links events also are recorded in Google Analytics for Firebase.\n\n### Integrating Firebase Dynamic Links with an instant app project\n\nYou can integrate Firebase Dynamic Links with your instant app project the same way\nyou would [integrate a standard Android app](https://firebase.google.com/docs/dynamic-links/android/receive).\n\nAfter you integrate with Firebase Dynamic Links, you just have to set the [androidFallbackLink\nparameter](https://firebase.google.com/docs/reference/dynamic-links/link-shortener)\nto your Instant Apps link."]]