iOS Box应用程序是否响应自定义URL方案?

jps*_*sim 0 iphone url-scheme ios ios5 box-api

我希望能够直接从我自己的原生iOS应用程序启动本机Box iOS应用程序.例如,Dropbox使用db-api-1://,Facebook使用fb://,Square使用square://等.

适用于iOS的Box是否使用类似的URL方案?如果是这样,是否有文档概述它可以解析哪些参数?如果没有,是否有另一种方式从我的应用程序启动它?

谢谢!

Fel*_*lix 5

我检查了应用的Info.plist:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.box.boxapp</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>box</string>
            <string>box-login</string>
        </array>
    </dict>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.box.docinteraction.upload</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>box-upload-all</string>
            <string>box-upload-all-direct</string>
        </array>
    </dict>
</array>
Run Code Online (Sandbox Code Playgroud)

因此总共有4个网址方案:盒子,盒子登录,盒子上传全部和盒子上传全部直接.但如果你没有任何文件,很难使用它们......

  • @seanrose你提到盒子方案列在文档中.这仍然是真的吗?我没看见他们 (2认同)