IOS端打开scheme协议,操作怎么无效?求解

iOS技术 未结 0 86
手机用户_r51dk
手机用户_r51dk LV1 6月4日 12:46 发表
点击群号免费加入Android研发QQ群:718969991 点击群号免费加入Android研发QQ2群:642949684 点击群号免费加入iOS研发QQ群:643871613
<p><span style="color: rgb(57, 58, 52); font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 15.2px; white-space: pre; background-color: rgb(246, 248, 250);"><span style="color: rgb(0, 0, 159);">通过官方文档使用</span></span>scheme打开小火箭VPN,代码如下:</p><p><span style="color: rgb(57, 58, 52); font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 15.2px; white-space: pre; background-color: rgb(246, 248, 250);"><span style="color: rgb(0, 0, 159);">from</span> ascript.ios <span style="color: rgb(0, 0, 159);">import</span> system</span><span style="color: rgb(57, 58, 52); font-family: SFMono-Regular, Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace; font-size: 15.2px; white-space: pre; background-color: rgb(246, 248, 250);"><br></span></p><div style="background-color: rgb(255, 255, 254); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px; line-height: 20px; white-space: pre;"><div>system.scheme_start(<span style="color: #a31515;">"shadowrocket://connect"</span>)</div><div><br></div><div>执行时打开的时ascript的界面,小火箭的scheme协议</div> <span style="color: rgb(163, 21, 21);">shadowrocket://connect</span></div><div style="background-color: rgb(255, 255, 254); font-family: Consolas, &quot;Courier New&quot;, monospace; font-size: 15px; line-height: 20px; white-space: pre;">是开启vpn的操作,我在手机浏览器输入 <span style="color: rgb(163, 21, 21);">shadowrocket://connect 是能打开的,但是通过官方文档的 </span> system.scheme_start(<span style="color: rgb(163, 21, 21);">"shadowrocket://connect"</span>) 始终无法运行开启功能。有知道原因的麻烦解答下,谢谢 </div>
收藏(0)  分享
相关标签: 讨论 scheme 协议打开应用 python
注意:本文归作者所有,未经作者允许,不得转载
0个回复
  • 消灭零回复