Menyediakan beberapa titik masuk ke pengalaman instan
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Peringatan: Google Play Instan tidak akan tersedia lagi. Mulai Desember 2025,
Aplikasi Instan tidak dapat dipublikasikan melalui Google Play, dan semua
API Instan layanan Google Play
tidak akan berfungsi lagi. Pengguna tidak akan lagi disajikan Aplikasi Instan oleh Play menggunakan mekanisme apa pun.
Kami melakukan perubahan ini berdasarkan masukan developer dan investasi berkelanjutan kami untuk meningkatkan kualitas ekosistem sejak diperkenalkannya Google Play Instan.
Untuk terus mengoptimalkan pertumbuhan pengguna, sebaiknya developer merujuk pengguna ke aplikasi atau game reguler mereka, menggunakan deep link untuk mengalihkan mereka ke perjalanan atau fitur tertentu jika relevan.
Setiap pengalaman instan memiliki setidaknya satu titik masuk, yang merupakan satu
aktivitas dalam aplikasi atau game Anda. Jika Anda ingin aplikasi atau game memiliki beberapa
titik masuk, tiap aktivitas awal harus dapat dituju; yaitu
harus sesuai dengan URL unik.
Jika URL titik masuk dalam aplikasi instan atau game memiliki domain yang sama, tiap
titik masuk harus sesuai dengan jalur yang berbeda dalam domain tersebut. Misalnya, Anda sedang membuat aplikasi navigasi yang harus memiliki tiga titik masuk terpisah: temukan lokasi saat ini, telusuri restoran di sekitar, dan bagikan lokasi. Setiap fitur ini berkaitan dengan resource dalam domain web,
"example.com". Untuk menyediakan URL unik bagi tiap titik masuk, tentukan jalur
yang berbeda dalam domain, seperti yang ditampilkan pada tabel berikut.
Fitur
URL
Pencari lokasi
http://example.com/finder
Restoran di sekitar
http://example.com/restaurants
Bagikan lokasi
http://example.com/share
Mendeklarasikan awalan jalur URL
URL satu titik masuk dapat memiliki URL yang sama dengan URL
titik masuk lain ke aplikasi atau game yang sama. Dalam kasus ini, tentukan
jalur lengkap untuk satu titik masuk dan awalan jalur untuk titik masuk lainnya, seperti
ditunjukkan dalam cuplikan kode berikut:
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Provide multiple entry points into an instant experience\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\nEach instant experience has at least one *entry point* , which is a single\nactivity within your app or game. If you want your app or game to have multiple\nentry points, each starting activity needs to be *addressable*; that is, it\nneeds to correspond to a unique URL.\n| **Note:** You cannot associate fragments with URLs. Additionally, you cannot launch these fragments independently of an activity.\n\nIf the URLs for the entry points in an instant app or game share a domain, each\nentry point needs to correspond to a different path within that domain. For\nexample, say you're creating a navigation app that should have three separate\nentry points: find current location, search for nearby restaurants, and share\nlocation. Each of these features corresponds to resources within a web domain,\n\"example.com\". To provide a unique URL for each entry point, specify different\npaths within the domain, as shown in the following table.\n| **Caution:** To help the system launch the correct activity for each entry point, make sure that your paths don't share a common prefix. For example, if you provided entry points containing the URLs \"http://example.com/check\" and \"http://example.com/checkout\", the system's behavior might be undefined.\n\n| Feature | URL |\n|--------------------|--------------------------------|\n| Location finder | http://example.com/finder |\n| Nearby restaurants | http://example.com/restaurants |\n| Share location | http://example.com/share |\n\nDeclare URL path prefixes\n-------------------------\n\nIt's possible for the URL of one entry point to share a prefix with the URLs of\nother entry points into the same app or game. In this case, specify the\nfull path for one entry point and the path prefix for the other entry points, as\nshown in the following code snippet:\n\nAndroidManifest.xml \n\n```xml\n\u003cmanifest\u003e\n \u003cactivity android:name=\".CatalogActivity\" \u003e\n \u003cintent-filter\u003e\n \u003c!-- List of items in the catalog. --\u003e\n \u003cdata android:path=\"/items\" /\u003e\n \u003c/intent-filter\u003e\n \u003c/activity\u003e\n \u003cactivity android:name=\".ItemActivity\" \u003e\n \u003cintent-filter\u003e\n \u003c!-- Information about a specific item in the catalog. --\u003e\n \u003cdata android:pathPrefix=\"/items/\" /\u003e\n \u003c/intent-filter\u003e\n\u003c/manifest\u003e\n```\n| **Note:** To match a `pathPrefix` filter, URLs must contain the path prefix in addition to at least one character following the prefix. Therefore, by following the logic in the preceding code snippet, the URL \"/items/\" would bring users to `CatalogActivity`."]]