Clicking in Top Shelf list no longer calls openURL: in app delegate

I have a top shelf extension that lists items. Clicking on one opens the app and triggers opening the item details.

Prior to the GM seed it worked fine, but in the GM I am no longer getting a call to the app delegate to handle the URL.

I've checked the URL schemes and nothing has changed.


Anyone else experienced the same thing?

I am.


I'm experiencing the exact behavior. The delegate method is just not being called. It basiclaly completely breaks this major feature, lol.

Same here. Worked until GM Seed and XCode 7.1 release

For better or worse, I guess this proves they didn't just relabel the Beta 3 release and throw it out there.

I'm in the same boat.

I figured it out. I had previously implemented this delegate:


- (BOOL)application:(UIApplication *)application openURL:(NSURL *)URL sourceApplication:(NSString *)sourceApplication annotation:(id)annotation;


It looks like it was removed in the GM. It doesn't auto complete either. You need to use this one:


- (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)URL options:(nonnull NSDictionary<NSString *,id> *)options;


So it was actualy a bug that it was available in the beta.

Do you have a swift version of this method?

Did you find a swift version of this method? When I Cmd-Clicked on UIApplication, the only two I found were:


1) public func canOpenURL(url: NSURL) -> Bool


and under public protocol UIApplicationDelegate : NSObjectProtocol, I found:


2) optional public func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool // no equiv.


When I use the following, I get no error but nothing happens:

UIApplication.sharedApplication().openURL(checkURL)

But when I try to add an options parameter to openURL, I get an error: "extra argument 'options' in call"

Clicking in Top Shelf list no longer calls openURL: in app delegate
 
 
Q