I tried to open a safari URL, but it doesn't seem to work.
[self.extensionContext openURL:[NSURL URLWithString:@"https://apple.com"] completionHandler:nil];
Is it not opening by design or is it a bug?
I tried to open a safari URL, but it doesn't seem to work.
[self.extensionContext openURL:[NSURL URLWithString:@"https://apple.com"] completionHandler:nil];
Is it not opening by design or is it a bug?
This thread here covers the topic:
There are workarounds to achieving this however in general its not recommended for extensions to launch url's.
Here is the earlier thread discussion on this topic - it was working in Xcode Beta 4 but not in Xcode 8 Beta 5 or Xcode 8 Beta 6: