Android 应用程序没有提供http方案
我的清单文件是:Android 应用程序没有提供http方案,android,manifest,deep-linking,Android,Manifest,Deep Linking,我的清单文件是: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="ir.technovaa.offer"> <application android:name=".OfferApplication" android:allowBack
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="ir.technovaa.offer">
<application
android:name=".OfferApplication"
android:allowBackup="false"
android:icon="@drawable/offer_icon"
android:label="@string/app_name"
android:supportsRtl="false"
android:theme="@style/AppTheme">
<activity
android:name=".activity.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activity.IntroductionActivity" />
<activity
android:name=".activity.CallbackActivity">
<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="http"
android:host="offer.ir"
android:path="/refer"/>
</intent-filter>
</activity>
</application>
</manifest>
所以,问题在于
CallbackActivity
,对于http
方案,CallbackActivity
没有链接,但如果我将其更改为像android:scheme=“offer”
这样的自定义方案,它就可以正常工作,并且活动将出现重定向链接。那么,我应该怎么做才能使http
scheme工作呢。谢谢。您是否通过https而不是http重定向应用程序?不,我完全是用http调用它。尝试将路径替换为pathPrefixIn如果是“http”,是否打开默认浏览器?如果是,请通过设置意图优先级()来进行检查,删除最后一个路径中的斜杠