Ответ 1
Вы можете попробовать разделить его на разные компоненты <intent-filter>
, потому что с одним приложением <intent-filter>
можно запутаться, даже если оно написано правильно.
<intent-filter android:label="...">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="www.ourdomain.com"
android:pathPrefix="/somethingelse"
android:scheme="https" />
<data android:host="www.ourdomain.com"
android:pathPrefix="/againsomethingelse"
android:scheme="https" />
</intent-filter>
<intent-filter android:label="...">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="customhost"
android:pathPrefix="/"
android:scheme="https" />
</intent-filter>
<intent-filter android:label="...">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="someothercustomhost"
android:scheme="https" />
</intent-filter>
<intent-filter android:label="...">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:host="andagainacustomhost"
android:scheme="https" />
</intent-filter>