工作,我增加了一個深層鏈接到我的Android應用程序是這樣的:Android。深層鏈接不與HTTP/HTTPS方案
當我點擊https://example.com
我重定向到網站。
當我將android:scheme="https"
更改爲android:scheme="appscheme"
它可以工作,並將我重定向到我的應用程序。
如何強制我的應用程序通過https
計劃打開?
UPDATE
我加了一個子域,它仍然不起作用。
<activity
android:name=".views.DeepLinkActivity"
android:exported="true">
<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="https"
android:host="www.example.ru"/>
</intent-filter>
</activity>
是你的項目包example.com:
因此,通過改變你的意圖過濾器?否則用你的包名取代它也嘗試用此行替換主機android:host =「open」做這些都讓我知道 –
如果我用「打開」替換主機它是如何知道我想從哪個站點重定向? – Rainmaker
只要模式匹配 –