Когда установленное приложение веб-просмотра касается ссылок skatehype.com, в браузере обнаруживается, но при выборе открыть в приложении открывается приложение и загружается главная страница, а не ссылка
<intent-filter>
<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:scheme="@string/scheme" />
</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:scheme="https" android:host="@string/domain" />
<data android:scheme="https" android:host="@string/domain_nw" />
<data android:scheme="http" android:host="@string/domain" />
<data android:scheme="http" android:host="@string/domain_nw" />
</intent-filter>
Ссылки skatehype: // запуск работает (проверено, но еще не используется). Ссылки https://www.skatehype.com/fromoza открывает главную страницу приложения (или любую ссылку)
Если я пытаюсь установить path или pathPrefix android:pathPrefix="/.*"
Причины, по которым браузер не работает попросить "открыть в приложении"
Как я могу перенаправить на правильный URL при открытии в ссылке на приложение?
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.getWindow().requestFeature(Window.FEATURE_PROGRESS);
/*...*/
if (getIntent().getData() != null) {
String path = getIntent().getDataString();
aswm_view(path);
}
}