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