Extensions are not ready

Marcin Krzyzanowski Blocked Unblock Follow Following Sep 23, 2014

Wrong UTI

Here what’s wrong with Action extension in iOS 8.0: it’s not working ;) Well… it’s not working as supposed at least. I am struggling with this issue:

I have rule for public.text only attachments:

UTI: public.plain-text, conforms to: public.text

My extension appears as available for input that doesn't have any content that conforms to public.plain-text. For example I receive only

UTI: public.url, conforms to: public.data

It does not conform to public.text but it still comes through!!!

Dead lock

This thing is annoying, and related to the first issue. Since rules don't work as expected, I have to ignore requests that I can’t handle. I check if any item conforms to my type with hasItemConformingToTypeIdentifier() if not then call context.cancelRequestWithError(error)

That’s not good. My extension UIViewController won't disappear, but extensionContext property become nil.

WAT?

Since now I have no way to dismiss extension view, I don’t even know that it’s called as an extension… nothing.

That was my rant. Now, if you want discuss about this please reply here on Developers Forum: https://devforums.apple.com/message/1048495#1048495

@krzyzanowskim