إنشاء روابط تطبيقات للتطبيقات الفورية
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تطبيق Android الفوري هو إصدار صغير من تطبيقك يتم تشغيله بدون
التثبيت. فبدلاً من تثبيت حزمة APK، يمكن للمستخدمين تشغيل تطبيقك من خلال
النقر على عنوان URL. وبناءً على ذلك، يجب أن تتوفّر إمكانية الوصول إلى جميع التطبيقات الفورية من خلال عنوان URL.
باستخدام Android App Links. توضّح هذه الصفحة كيفية استخدام تطبيق Android.
روابط تطبيقات Android الفورية
نظرة عامة على روابط التطبيقات
أولاً، إليك ملخّص لما يجب أن تفهمه حاليًا بشأن روابط التطبيقات.
- عند إنشاء فلتر أهداف للأنشطة في تطبيقك التي تسمح
انتقال المستخدم مباشرة إلى شاشة معينة في تطبيقك
رابط عنوان URL، يُعرف هذا باسم "الرابط لصفحة في التطبيق". يمكن للتطبيقات الأخرى الإفصاح عن نتيجة مشابهة
ومع ذلك، قد يسأل النظام من المستخدم عن التطبيق الذي يريد تحديد عنوان URL له.
مفتوحة. لإنشاء هذه الروابط لصفحات في التطبيق، يُرجى قراءة
إنشاء روابط لصفحات معيّنة في محتوى التطبيق:
- عند نشر ملف
assetlinks.json
على الموقع الإلكتروني الذي يتوافق مع
إلى روابط HTTP لموضع معيّن في تطبيقك، عليك إثبات أنّ تطبيقك هو المالك الحقيقي
لعناوين URL هذه. وهكذا، فقد حوّلت روابط الصفحات في التطبيق إلى Android App Links،
التي تضمن فتح تطبيقك فورًا عندما ينقر المستخدم على عنوان URL كهذا.
لإنشاء روابط تطبيق، يُرجى قراءة
التحقّق من روابط تطبيقات Android
وبالتالي، Android App Links هي روابط تؤدي إلى صفحات في التطبيق تستخدم بروتوكول HTTP تم التحقّق منها.
امتلاكها حتى لا يحتاج المستخدم إلى اختيار التطبيق الذي سيفتحه. للحصول على مزيد من
وصف محدّد، راجِع الاختلافات بين الروابط لصفحات معيّنة وروابط التطبيق.
ومع ذلك، في كلتا الحالتين، يجب أن يكون المستخدم قد ثبَّت تطبيقك مسبقًا. إذا كانت
ينقر المستخدم على أحد روابط موقعك الإلكتروني، لكن التطبيق لم يثبِّته.
(وليس هناك أي تطبيق آخر يعالج عنوان URL هذا)، يتم فتح عنوان URL في متصفّح ويب.
ولذلك، يساعد إنشاء تطبيق فوري على حل هذا الجزء—حيث يسمح للمستخدمين بفتح التطبيق من خلال
النقر على عنوان URL حتى لو لم يكن التطبيق مثبّتًا لديهم.
عندما يُجري المستخدمون عملية بحث على Google عن تطبيقك، يعرض "بحث Google"
عنوان URL يحتوي على "البحث الفوري" الشارة.
أوجه الاختلاف بين روابط التطبيقات للتطبيقات الفورية
إذا كنت قد اتبعت بالفعل الأدلة من أجل
إنشاء روابط لصفحات معيّنة في محتوى التطبيق
أو
التحقّق من روابط تطبيقات Android
يعني ذلك أنّك قد أكملت معظم الإجراءات اللازمة لإتاحة إمكانية استخدام روابط التطبيقات
لتطبيقك الفوري. هناك بعض القواعد الإضافية عند استخدام روابط التطبيقات
التطبيقات الفورية:
يجب أن تتوافق جميع فلاتر الأهداف المستخدَمة كروابط تطبيق في تطبيقك الفوري
كل من HTTP وHTTPS. مثلاً:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="www.example.com" />
<data android:scheme="https" />
</intent-filter>
لاحظ أنك لست بحاجة إلى تضمين host
في <data>
الثاني.
العنصر لأنه ضمن كل عنصر <intent-filter>
، جميع مجموعات
تُعتبر كل سمة <data>
صالحة (بحيث يفعل فلتر الأهداف هذا
حل https://www.example.com
).
يمكن الإعلان عن تطبيق فوري واحد فقط لكل نطاق موقع إلكتروني. (هذه
على عكس إنشاء روابط تطبيقك القابل للتثبيت، ما يتيح لك
ربط موقع إلكتروني بتطبيقات متعدّدة)
تذكيرات أخرى عند إنشاء روابط التطبيقات
- يجب تضمين جميع فلاتر intent لعنوان URL الذي يستخدم HTTP في تطبيقك الفوري في
تطبيقك القابل للتثبيت. هذا مهم لأنه بمجرد تثبيت المستخدم
للتطبيق الكامل، فإن النقر على عنوان URL يجب أن يؤدي دائمًا إلى فتح التطبيق المثبت، وليس التطبيق الفوري
التطبيق.
- يجب ضبط
autoVerify="true"
في فلتر أهداف واحد على الأقل في كل من
التطبيق الفوري والتطبيق القابل للتثبيت. (اطّلِع على كيفية تفعيل إثبات الملكية التلقائي.)
- يجب نشر
assetlinks.json
واحد لكل نطاق (ونطاق فرعي).
متوافقة مع روابط تطبيقك، باستخدام بروتوكول HTTPS. (تعرَّف على كيفية
إتاحة ربط التطبيقات لمضيفين متعددين).
- يجب أن يكون ملف
assetlinks.json
بتنسيق JSON صالحًا وأن يتم عرضه بدون عمليات إعادة توجيه
أن يكون بإمكان برامج التتبّع الوصول إليها (يجب أن يسمح robots.txt
بالزحف
/.well-known/assetlinks.json
).
- ولا يُنصح باستخدام أحرف البدل في سمة مضيف فلتر الأهداف.
(تعرّف على كيفية إتاحة ربط التطبيقات من نطاقات فرعية متعددة.)
- يجب الإعلان عن عناوين URL للمضيف/المخطط المخصّصة باستخدام فلاتر أهداف منفصلة.
- يُرجى التأكد من أنّ عناوين URL لروابط التطبيقات تأخذ في الاعتبار أهم نتائج البحث بالنسبة إلى
المصطلحات الرئيسية.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ 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,["# Create App Links for Instant Apps\n\nAn Android Instant App is a small version of your app that runs without\ninstallation. Instead of installing an APK, users launch your app simply by\nclicking a URL. As such, all instant apps need to be accessible via a URL\ndeclared using Android App Links. This page explains how to use Android App\nLinks for your [Android Instant Apps](/topic/instant-apps).\n| **Note:** If you're not building an instant app, then you don't need to read this guide---you should instead create app links for your installable app by reading [Create Deep Links to App Content](/training/app-links/deep-linking).\n\nApp links overview\n------------------\n\nFirst, here's a summary of what you should already understand about app links.\n\n- When you create an intent filter for activities in your app that allow the user to jump straight to a specific screen in your app with a URL link, this is known as a \"deep link.\" Other apps can declare a similar URL intent filter, though, so the system might ask the user which app to open. To create these deep links, read [Create Deep Links to App Content](/training/app-links/deep-linking).\n- When you publish an `assetlinks.json` file on the website that corresponds to your app's HTTP deep links, you verify that your app is the true owner of those URLs. Thus, you've converted your deep links into Android App Links, which ensure that your app instantly opens when the user clicks such a URL. To create app links, read [Verify Android App Links](/training/app-links/verify-android-applinks).\n\nSo, Android App Links are simply HTTP deep links that your website is verified\nto own so that the user doesn't need to choose which app to open. For a more\nspecific description, see [differences between deep links and app links](/training/app-links/verify-android-applinks#the-difference).\n\nIn both cases, however, the user must already have your app installed. If the\nuser clicks one of your web site's links and they don't have your app installed\n(and no other app handles that URL intent), the URL is opened in a web browser.\nSo, creating an Instant App solves this part---it allows users to open your app by\nsimply clicking a URL, even if they don't have your app installed.\n\nWhen end users perform a Google search for your app, Google Search displays a\nURL with the \"Instant\" badge.\n\nHow app links for instant apps are different\n--------------------------------------------\n\nIf you've already followed the guides to\n[Create Deep Links to App Content](/training/app-links/deep-linking)\nand\n[Verify Android App Links](/training/app-links/verify-android-applinks),\nthen you've already done most of the work necessary to make app links work with\nyour instant app. There are just a couple extra rules when using app links for\ninstant apps:\n\n- All intent filters used as app links in your instant app must support\n both HTTP and HTTPS. For example:\n\n \u003cintent-filter\u003e\n \u003caction android:name=\"android.intent.action.VIEW\" /\u003e\n \u003ccategory android:name=\"android.intent.category.DEFAULT\" /\u003e\n \u003ccategory android:name=\"android.intent.category.BROWSABLE\" /\u003e\n \u003cdata android:scheme=\"http\" android:host=\"www.example.com\" /\u003e\n \u003cdata android:scheme=\"https\" /\u003e\n \u003c/intent-filter\u003e\n\n Notice that you don't need to include the `host` in the second `\u003cdata\u003e`\n element because, within each `\u003cintent-filter\u003e` element, all combinations of\n each `\u003cdata\u003e` attribute are considered valid (so this intent filter *does*\n resolve `https://www.example.com`).\n- Only one instant app can be declared for each website domain. (This is\n unlike when creating app links for your installable app, which allows you to\n [associate a website with multiple apps](/training/app-links/verify-android-applinks#multiple-apps).)\n\nOther reminders when creating app links\n---------------------------------------\n\n- All HTTP URL intent filters in your instant app should be included in your installable app. This is important because once the user installs your full app, tapping a URL should always open the installed app, not the instant app.\n- You must set `autoVerify=\"true\"` in at least one intent filter in both the instant and the installable app. (See how to [enable automatic verification](/training/app-links/verify-android-applinks#config-verify).)\n- You must publish one `assetlinks.json` for each domain (and subdomain supported by your app links, using the HTTPS protocol. (See how to [support app linking for multiple hosts](/training/app-links/verify-android-applinks#multi-host)).\n- The `assetlinks.json` file must be valid JSON, be served without redirects, and be accessible to bots (your `robots.txt` must allow crawling `/.well-known/assetlinks.json`).\n- Use of wildcards in your intent filter's host attribute is not recommended. (See how to [support app linking from multiple subdomains](/training/app-links/verify-android-applinks#multi-subdomain).)\n- Custom host/scheme URLs should be declared with separate intent filters.\n- Ensure that your app link URLs account for your top search results for your key terms."]]