سؤال

I'd love to be able to launch the native Box iOS app directly from my own native iOS app. For example, Dropbox uses db-api-1://, Facebook uses fb://, Square uses square://, etc.

Does Box for iOS use a similar URL scheme? 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:

<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. But its hard to use them if you don't have any documentation...

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top