Отправить намерение от Chrome открывает приложение через Chrome - PullRequest
3 голосов
/ 27 мая 2020

Когда я делюсь ссылкой из Chrome на свое приложение, она открывается не в процессе приложения, а в самом Chrome.

Намерение открыто в Chrome, а не в процессе приложения

У меня есть приложение Ioni c 5 с React и Capacitor в качестве моста. Моя цель общего доступа настроена следующим образом:

        <activity
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
            android:name="de.mindlib.MainActivity"
            android:label="@string/title_activity_main"
            android:theme="@style/AppTheme.NoActionBarLaunch"
            android:launchMode="singleTask">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <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="@string/custom_url_scheme" />
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.SEND"  />

                <category android:name="android.intent.category.DEFAULT" />

                <data android:mimeType="text/plain" />
            </intent-filter>
        </activity>

Я хотел бы, чтобы целевой общий ресурс был открыт в процессе приложения. Кто-нибудь может помочь?

...