i have done sample action extension app. am not able to get host app request data.i think is there some issue with this code.
Host App request code
NSDictionary *request = @{@"username”:@“username”,@“password”:@“password”};
UIActivityViewController *extensionController = [[UIActivityViewController alloc] initWithActivityItems:@[request] applicationActivities:nil];
extensionController.popoverPresentationController.sourceView = self.view;
[self presentViewController:extensionController animated:YES completion:nil];
App Extension code
NSExtensionItem *inputItem = self.extensionContext.inputItems[0];
NSItemProvider *itemprovider = inputItem.attachments[0];
[itemprovider loadItemForTypeIdentifier:(NSString *)kUTTypePropertyList options:nil completionHandler:^(NSDictionary *item, NSError *error) {
NSDictionary *results = (NSDictionary *)item;
NSLog(@“Host app Request Data=%@",results);
}];
am not sure what's wrong above code, can anyone help me.. thanks