我正在开发一个android应用程序,在那里我用深度链接url查看登录活动,这是我正在使用的意图。
<activity android:name="Login_User"
android:screenOrientation="portrait">
<intent-filter
android:autoVerify="true">
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data
android:host="www.mySite.com"
android:path="/launch.php"
android:scheme="http"
></data>
<data
android:host="www.mySite.com"
android:path="/launch.php"
android:scheme="https" />
</intent-filter>
</activity>这段代码可以在除android 10之外的所有android版本上运行,我应该怎么做才能让它在android 10上运行。我找不到专门针对android 10的东西。谢谢。
发布于 2020-10-17 04:10:59
我认为你之前正在执行类似于" scheme ://host/path“的东西,但我相信Chrome不会处理Android 10及更高版本的URI方案。这是现在推荐的方案:
intent://host/path#Intent;scheme=scheme;package=com.example.app.package;end
请参阅此参考:https://developer.chrome.com/multidevice/android/intents
我还找到了在我的移动设备上查看工作示例的this tool handy。对于您的应用程序,您可以尝试从javascript或web浏览器启动此URL:
intent://www.mySite.com/launch.php#Intent;scheme=http;package=your.app.package;endhttps://stackoverflow.com/questions/63538718
复制相似问题