这是一个商品详情页的activity 我现在添加了intent_filter 想通过这个连接 xgshuo://product_detail?product_id=5526365552555"打开APP 但是各种浏览器试过
就是不行 但是在应用内在别的页面通过这样
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("xgshuo://product_detail?product_id="+product.getProduct_id())));
可以启动这个页面 但是为什么浏览器里就是打不开 之前在网上看到有人说部分浏览器不支持 但是系统自带的浏览器还有chrome好像支持 但是我现在所有浏览器基本都试了一遍 还是无法实现
<activity android:name=".ui.activity.ProductDetailActivity"
android:screenOrientation="portrait"
>
<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="xgshuo" android:host="product_detail"/>
</intent-filter>
</activity>