I am currently developing an iOS application containing a Share extension.
I realized that the
NSExtensionActivationSupportsImageWithMaxCount
key doesn't allow me to activate my Share extension on .jpeg or .png URLs ("public.image" UTI, kUTTypeImage) under Safari (ie : an imgur link).
I can still activate and test my extension if I switch to a NSActivationRule = TRUEPREDICATE, but it is forbidden for a released app.
I filled a bug on radar in case of it wasn't wanted (even facebook, twitter, etc... aren't activated on this URLs)
Right now, I would like to combine the following keys and the "public.image" in a NSPredicate string as the documentation says (https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionScenarios.html#//apple_ref/doc/uid/TP40014214-CH21-SW8)
So I have to translate the keys to a UTI
So far I have translated:
- NSExtensionActivationSupportsFileWithMaxCount
to "public.file-url" kUTTTypeFileURL
- NSExtensionActivationSupportsMovieWithMaxCount
to "public.movie" kUTTypeMovie
- NSExtensionActivationSupportsText
to "public.text" kUTTypeText
- NSExtensionActivationSupportsWebURLWithMaxCount
to "public.url" kUTTypeURL
But I don't find the type translation for:
NSExtensionActivationSupportsWebPageWithMaxCount
, "public.HTML" is it kUTTypeHTML ?
Does somebody already used this keys inside a predicate?