将 Firebase Dynamic Links 用于免安装应用
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
警告:Google Play 免安装体验将不再可用。自 2025 年 12 月起,将无法再通过 Google Play 发布免安装应用,并且所有 Google Play 服务免安装体验 API 将停止运行。Play 将不再通过任何机制向用户提供免安装应用。
自推出 Google Play Instant 以来,我们一直在不断投资改进生态系统,因此决定根据开发者的反馈做出此项变更。
若要继续优化以促进用户增长,我们建议开发者使用深层链接将用户引导至其常规应用或游戏,并在适当的时候将用户重定向到特定历程或功能。
一些深层链接库(比如 Branch)与 Google Play 免安装体验兼容。
如果您当前的深层链接解决方案未列出,或者您发现它无法用于 Google Play 免安装体验,请考虑使用 Firebase 动态链接。本页面介绍了如何在免安装应用项目中设置 Firebase 动态链接。
主要优势
- 使用 Firebase 动态链接封装您的链接可确保点按链接一律将用户导向您的免安装应用。否则,应用可能会强制链接在应用内浏览器中打开,而不是在免安装应用中打开。Firebase 动态链接可让您控制点按链接的行为。
- 利用 Firebase 动态链接,您可以跟踪对事件(如点击、首次打开、重新打开和安装等)的分析。动态链接事件也会记录在 Google Analytics for Firebase 中。
将 Firebase 动态链接与免安装应用项目相集成
您可以像集成标准 Android 应用一样,将 Firebase 动态链接与免安装应用项目相集成。
与 Firebase 动态链接集成后,只需将 androidFallbackLink 参数设置为您的免安装应用链接即可。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):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."]]