you may use this code:
[self.extensionContext openURL:url completionHandler:^(BOOL success) {
NSLog(@"fun=%s after completion. success=%d", __func__, success);
}];
the API document:
openURL:completionHandler:
you could also refer to this question:
openURL not work in Action Extension