I have this code that return success = NO
[self.extensionContext openURL:[NSURL URLWithString:@"URLApp://"] completionHandler:^(BOOL success) {
[self.extensionContext completeRequestReturningItems:nil completionHandler:nil];
}];
So and I can't open containing app from my share extension when I debug it.
I've configured main target of contained app like this:
I've tested open URLApp://
from safari and it works for me.
I also used some examples provided here to understand how to open containing app using url scheme.
EDIT: Ok, just a little correction here. I got it working with placing a button over the label just like suggested above and the following code:
I linked it to a "Touch Up Inside" event. However, this also causes the app to launch when the user scrolls the Today view.
=======================================
I ran into the same issue. However, it seems that there is no solution for now since the release notes for the first beta of iOS 8 mention:
So I guess we will at least have to wait until beta 2.
I found this answer here by Julio Bailon: