Google Play पर ऐप्लिकेशन को वेबपेज से इंस्टॉल करने की सुविधा
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर बताया गया है कि ऐप्लिकेशन डेवलपर, वेबपेज से इंस्टॉल करने की सुविधा को कैसे इंटिग्रेट कर सकते हैं. यह Google Play के लिए एक नई जांच करने की सुविधा है. इससे Google Play ऐप्लिकेशन के प्रॉडक्ट की जानकारी, आधी शीट वाले इंटरफ़ेस में दिखती है. इनलाइन इंस्टॉल की सुविधा की मदद से, उपयोगकर्ताओं को ऐप्लिकेशन के कॉन्टेक्स्ट से बाहर निकले बिना, ऐप्लिकेशन को आसानी से इंस्टॉल करने का अनुभव मिलता है. ऐप्लिकेशन डेवलपर, Play पर डिस्ट्रिब्यूट किए गए या अपडेट किए गए ऐप्लिकेशन के लिए, इनलाइन इंस्टॉल की सुविधा को इंटिग्रेट और टेस्ट कर सकते हैं.
ज़रूरी शर्तें
किसी ऐप्लिकेशन में आधी शीट वाला इंटरफ़ेस दिखाने के लिए:
- Google Play का वर्शन 40.4 या इसके बाद का होना चाहिए.
- Android एपीआई लेवल 23 या उसके बाद का होना चाहिए.
किसी ऐप्लिकेशन से इनलाइन इंस्टॉल को ट्रिगर करना
किसी ऐप्लिकेशन से इनलाइन इंस्टॉल हाफ़ शीट को चालू करने के लिए, Intent
क्लास का एक इंस्टेंस बनाएं. इससे डीप लिंक यूआरएल खुलता है. नीचे दिए गए सैंपल कोड (Kotlin या Java) का इस्तेमाल दिशा-निर्देश के तौर पर करें.
Kotlin
val intent = Intent(Intent.ACTION_VIEW)
val referrer = "<Your referrer string>"
val id = "<Package name of the app that is to be installed>"
val callerId = "<Package name of your app>"
intent.setPackage("com.android.vending")
val deepLinkUrl = "https://play.google.com/d?id=$id&referrer=$referrer&listing=$csl_id"
intent.data = Uri.parse(deepLinkUrl)
intent.putExtra("overlay", true)
intent.putExtra("callerId", "$callerId")
val packageManager = context.getPackageManager()
if (intent.resolveActivity(packageManager) != null) {
startActivityForResult(intent, 0)
} else {
// Fallback to deep linking to full Play Store.
}
Java
Intent intent = new Intent(Intent.ACTION_VIEW);
String referrer = "<Your referrer string>";
String id = "<Package name of the app that is to be installed>";
String callerId = "<package name of your app>";
String csl_id = "<Custom store listing id>";
intent.setPackage("com.android.vending");
String deepLinkUrl = "https://play.google.com/d?id=" + id + "&referrer=" + referrer + "&listing=" + csl_id;
intent.setData(Uri.parse(deepLinkUrl));
intent.putExtra("overlay", true);
intent.putExtra("callerId", callerId);
PackageManager packageManager = context.getPackageManager();
if (intent.resolveActivity(packageManager) != null) {
startActivityForResult(intent, 0);
} else {
// Fallback to deep linking to full Play Store.
}
इनलाइन इंस्टॉल एपीआई पैरामीटर
फ़ील्ड |
जानकारी |
ज़रूरी है |
referrer |
वैकल्पिक रेफ़रर ट्रैकिंग
स्ट्रिंग |
नहीं |
id |
इंस्टॉल किए जाने वाले ऐप्लिकेशन का
पैकेज नेम |
हां |
overlay |
अगर इनलाइन हाफ शीट का अनुरोध किया गया है, तो true पर सेट करें. अगर
false है, तो इंटेंट Google Play पर डीप लिंक करता है |
हां |
callerId |
कॉल करने वाले ऐप्लिकेशन का
पैकेज नेम |
हां |
listing |
कस्टम स्टोर पेज के लिए टारगेट तय करने के लिए, वैकल्पिक पैरामीटर |
नहीं |
अगर ऐप्लिकेशन इंस्टॉल करने के फ़्लो में, Google Play का इनलाइन इंस्टॉल हाफ़शीट इंटरफ़ेस नहीं दिखता है, तो इसके बजाय Google Play की लिस्टिंग का डायरेक्ट (डीप लिंक) दिखता है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# Google Play Inline Installs (Apps)\n\nThis page describes how app developers can integrate *inline install*, a new\ntest feature for Google Play that presents Google Play app product details in a\nhalf sheet interface. Inline install enables users to experience a seamless app\ninstall flow without leaving the context of the app. App developers can\nintegrate and test the inline install feature for Play distributed or updated\napps.\n\nRequirements\n------------\n\nFor the half sheet interface to appear in an app:\n\n- The minimum Google Play version must be **40.4**.\n- The Android API level must be **23 or higher**.\n\nInvoke inline installs from an app\n----------------------------------\n\nTo invoke inline install half sheet from an app, create an instance of the\n[`Intent`](/reference/android/content/Intent) class, which opens a deep link\nURL. Use the following sample code (Kotlin or Java) as a guideline. \n\n### Kotlin\n\n```kotlin\nval intent = Intent(Intent.ACTION_VIEW)\nval referrer = \"\u003cYour referrer string\u003e\"\nval id = \"\u003cPackage name of the app that is to be installed\u003e\"\nval callerId = \"\u003cPackage name of your app\u003e\"\nintent.setPackage(\"com.android.vending\")\nval deepLinkUrl = \"https://play.google.com/d?id=$id&referrer=$referrer&listing=$csl_id\"\nintent.data = Uri.parse(deepLinkUrl)\nintent.putExtra(\"overlay\", true)\nintent.putExtra(\"callerId\", \"$callerId\")\nval packageManager = context.getPackageManager()\nif (intent.resolveActivity(packageManager) != null) {\n startActivityForResult(intent, 0)\n} else {\n // Fallback to deep linking to full Play Store.\n}\n```\n\n### Java\n\n```java\nIntent intent = new Intent(Intent.ACTION_VIEW);\nString referrer = \"\u003cYour referrer string\u003e\";\nString id = \"\u003cPackage name of the app that is to be installed\u003e\";\nString callerId = \"\u003cpackage name of your app\u003e\";\nString csl_id = \"\u003cCustom store listing id\u003e\";\nintent.setPackage(\"com.android.vending\");\nString deepLinkUrl = \"https://play.google.com/d?id=\" + id + \"&referrer=\" + referrer + \"&listing=\" + csl_id;\nintent.setData(Uri.parse(deepLinkUrl));\nintent.putExtra(\"overlay\", true);\nintent.putExtra(\"callerId\", callerId);\nPackageManager packageManager = context.getPackageManager();\nif (intent.resolveActivity(packageManager) != null) {\n startActivityForResult(intent, 0);\n} else {\n // Fallback to deep linking to full Play Store.\n}\n```\n\nInline install API parameters\n-----------------------------\n\n| Field | Description | Required |\n|------------|---------------------------------------------------------------------------------------------------|----------|\n| `referrer` | An optional [referrer](/google/play/installreferrer) tracking string | No |\n| `id` | The [package name](https://support.google.com/admob/answer/9972781) of the app to be installed | Yes |\n| `overlay` | Set to `true` if inline half sheet is requested; if `false`, the intent deep links to Google Play | Yes |\n| `callerId` | The [package name](https://support.google.com/admob/answer/9972781) of the caller app | Yes |\n| `listing` | An optional parameter to specify the target for a custom store listing | No |\n\nIf the app install flow doesn't display the Google Play inline install half\nsheet interface, a direct (deep link) to the Google Play listing is shown\ninstead."]]