Android диалог устранения неоднозначности в applink, когда объявлено несколько доменов - PullRequest
1 голос
/ 17 марта 2020

Привет, я пытаюсь включить ссылки на приложения, как описано здесь: https://developer.android.com/training/app-links

Все отлично работает с одним доменом, но когда я пытаюсь включить несколько доменов * Система 1012 * всегда показывает диалоговое окно устранения неоднозначности.

Есть ли обходной путь для включения нескольких доменов (не SUBdomains), чтобы мой файл манифеста не отображал диалоговое окно устранения неоднозначности?

Вот мой AndroidManifest. xml

<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleInstance" android:name="MainActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="adjustResize">
  <intent-filter android:label="@string/launcher_name">
    <action android:name="android.intent.action.MAIN"/>
    <category android:name="android.intent.category.LAUNCHER"/>
  </intent-filter>
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="exampl1.it" android:scheme="http" android:path="/applink"/>
  </intent-filter>
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="example1.it" android:scheme="https" android:path="/applink"/>
  </intent-filter>
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="p.example2.it" android:scheme="http"/>
  </intent-filter>
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="p.example2.it" android:scheme="https"/>
  </intent-filter>
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="example3.com" android:scheme="http" android:path="/path/to-deep"/>
  </intent-filter>
  <intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:host="example3.com" android:scheme="https" android:path="/path/to-deep"/>
  </intent-filter>
</activity>

1 Ответ

1 голос
/ 17 марта 2020

Смотрите мой ответ на { ссылка }. Я разделил все <data> теги на атрибуты:

<data android:scheme="https" />
<data android:host="example.com" />
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...