On iOS devices, the Mail app offers "Open In..." option for attachments. The apps listed have registered their CFBundleDocumentTypes with the OS. What I am wondering is how my app might allow users to open files generated by my app in other apps. Is Mail the only app that provides this feature?
Q: How do I get my application to show up in the “Open in...” menu on iOS for a specific document type? A: You need to register the document types that your application can open with iOS. To do this you need to add a document type to your app's Info. plist for each document type that your app can open.
Open Settings and find the app you want to use – in our case Chrome. Tap on it and you'll be presented with a list of settings, one of which is the new Default Browser App option. At the moment it should be showing that Safari is the one selected. To change it you need to the tap on the current option.
Once you have your apps toggled on, you can change their positions in your menu. Tap and hold the three line icon to the right until you have "grabbed" it, then drag it to where you want it.
To do this, select a file, press Command-I, then expand the Open With section if it's not already expanded. Click the popup menu and select the app you want to use, then click Change All.
Take a look at the Document Interaction Programming Topics for iOS: Registering the File Types Your App Supports.
As long as you provide your document types in your Info.plist, other apps that recognize that document type will list your app in their "open in" choices. Of course, that presumes that your app creates documents that other apps can open.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With