I'm implementing export / import feature for my app:
Export data with custom file extension (Backup.appname) → tap on file in mail or iCloud drive → have my app shown as "Import with AppName" in share sheet.
I added a custom UTI and document type to my app's plist as explained here. Everything works as it should, except my app is shown as "Copy to AppName", and not "Import with AppName".
How can I get it shown as "Import with AppName"? I've seen other apps have it for their custom file types.
It happens because you are using key LSHandlerRank
with value Owner
. If you change this value to Alternate
, text will change to Import with <AppName>
.
I can't find any documented confirmation about this behavior (only possible types of handler), as well as what will happen if you change the value of LSHandlerRank
for your custom type.
Seems that most of apps use common types, such as public.data
, public.content
and don't set value of LSHandlerRank
at all.
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