简体   繁体   English

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

[英]Does the iOS Box app respond to a custom URL scheme?

I'd love to be able to launch the native Box iOS app directly from my own native iOS app. 我很希望能够直接从我自己的本地iOS应用程序启动本地Box iOS应用程序。 For example, Dropbox uses db-api-1:// , Facebook uses fb:// , Square uses square:// , etc. 例如,Dropbox使用db-api-1:// ,Facebook使用fb:// ,Square使用square:// ,等等。

Does Box for iOS use a similar URL scheme? iOS版Box是否使用类似的URL方案? If so, is there documentation outlining what parameters it can parse? 如果是这样,是否有文档概述了可以解析的参数? If not, is there another way of launching it from my app? 如果没有,还有其他从我的应用程序启动它的方法吗?

Thanks! 谢谢!

I've inspected the Info.plist of the app: 我检查了应用程序的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>

So there are 4 url schemes in total: box, box-login, box-upload-all and box-upload-all-direct. 因此,总共有4种url方案:box,box-login,box-upload-all和box-upload-all-direct。 But its hard to use them if you don't have any documentation... 但是如果您没有任何文档,则很难使用它们...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM