Android 应用无法从 URL 使用 intent-filter 打开

Android app not opening from URL using intent-filter

我正在尝试从网站打开我的应用程序并阅读 link 中的一些文本。 URL 将类似于 codespike.com/?code=xxxx。我需要阅读 xxx 但我的问题是当这个特定的 URL 在浏览器中打开时我无法打开我的应用程序。为了测试,我还使用了一个网站 bfinstafollowers.com,也没有使用它。 这就是我正在尝试的。

<activity
            android:name="com.softech.betforinstafollowers.MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait" >
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:host="bfinstafollowers.com" android:scheme="http"
                    android:pathPrefix=".*"/>
            </intent-filter>
        </activity>

也尝试过使用 <category android:name="android.intent.category.BROWSABLE"/> 和不使用 android:pathPrefix=".*",但我的应用打不开。

解决了我的问题,因为常规 httphttps 不起作用。为此,我必须创建自定义方案。