ใช้ลิงก์แบบไดนามิกของ Firebase กับ Instant App
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำเตือน: Google Play Instant จะไม่มีให้บริการอีกต่อไป ตั้งแต่เดือนธันวาคม 2025 เป็นต้นไป
คุณจะไม่สามารถเผยแพร่ Instant Apps ผ่าน Google Play ได้ และ Instant API ของบริการ Google Play
ทั้งหมดจะหยุดทำงาน Play จะไม่แสดงแอปด่วนต่อผู้ใช้โดยใช้กลไกใดๆ อีกต่อไป
เราทำการเปลี่ยนแปลงนี้ตามความคิดเห็นของนักพัฒนาแอปและการลงทุนอย่างต่อเนื่อง
เพื่อปรับปรุงระบบนิเวศตั้งแต่เปิดตัว Google Play Instant
เราขอแนะนำให้นักพัฒนาแอปนำผู้ใช้ไปยัง
แอปหรือเกมปกติของตนโดยใช้ Deep Link
เพื่อเปลี่ยนเส้นทางผู้ใช้ไปยังเส้นทางหรือฟีเจอร์ที่เฉพาะเจาะจงเมื่อเกี่ยวข้อง เพื่อเพิ่มประสิทธิภาพในการเพิ่มผู้ใช้อย่างต่อเนื่อง
ไลบรารี Deep Link หลายรายการใช้ได้กับ Google Play Instant
เช่น Branch
หากโซลูชัน Deep Link ที่ใช้อยู่ไม่ได้อยู่ในรายการ หรือหากพบว่าโซลูชันดังกล่าวใช้กับ Google Play Instant ไม่ได้ ให้พิจารณาใช้ลิงก์แบบไดนามิกของ Firebase หน้านี้อธิบายวิธีกำหนดค่าลิงก์แบบไดนามิกของ Firebase ในโปรเจ็กต์ Instant App
ประโยชน์สำคัญ
- การรวมลิงก์กับลิงก์แบบไดนามิกของ Firebase จะรับประกันว่าการคลิกลิงก์จะนำผู้ใช้ไปยัง Instant App ของคุณเสมอ ไม่เช่นนั้น แอปอาจบังคับให้เปิดลิงก์ภายในเบราว์เซอร์ในแอปแทนที่จะเป็น Instant App ได้ ลิงก์แบบไดนามิกของ Firebase ช่วยให้คุณควบคุมลักษณะการทำงานของการคลิกลิงก์ได้
- ลิงก์แบบไดนามิกของ Firebase ช่วยให้คุณติดตามข้อมูลวิเคราะห์เกี่ยวกับเหตุการณ์ต่างๆ เช่น การคลิก การเปิดครั้งแรก การเปิดอีกครั้ง และการติดตั้ง ระบบจะบันทึกเหตุการณ์ลิงก์แบบไดนามิกลงใน Google Analytics สำหรับ Firebase ด้วย
การผสานรวมลิงก์แบบไดนามิกของ Firebase กับโปรเจ็กต์ Instant App
คุณสามารถผสานรวมลิงก์แบบไดนามิกของ Firebase กับโปรเจ็กต์ Instant App ได้ในลักษณะเดียวกับที่ผสานรวมแอป Android มาตรฐาน
หลังจากผสานรวมกับลิงก์แบบไดนามิกของ Firebase แล้ว คุณเพียงแค่ต้องตั้งค่าพารามิเตอร์ androidFallbackLink
เป็นลิงก์ Instant App
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","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 UTC"],[],[],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."]]