我尝试在特定的 url 上调用我的应用程序。为此,我在清单中使用了这个意图过滤器:
<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="mapi.staging.mysite.com"
android:pathPrefix="/myredirectionurl" />
</intent-filter>
这适用于 Google Chrome、Ecosia 和三星 Internet,但不适用于小米的默认浏览器、UC 浏览器、CM 浏览器、Opera 和 Firefox