I installed the extension for sharing in my iOS 8 application and everything is working fine. I can share with photo app or with Safari. But when I'm in Safari, I have no idea how to get the generated thumbnail image of the web page. I registered the correct NSExtensionActivationRule. When I share a photo from the Photos application, the NSItemProvider object type says it is public.jpeg and I can use
[itemProvider loadItemForTypeIdentifier:(NSString *)kUTTypeImage options:nil completionHandler:^(UIImage *image, NSError *error) { [self.extensionContext completeRequestReturningItems:@[] completionHandler:nil]; }];
to get an image
But when I share with Safari, the NSItemProvider type says it's public.url and I have no idea how to get the image? I know how to get the url by running loadItemForTypeIdentifier: @ "public.url", but how do I get the image?
Jesse source share