I'm recieving results in spotlight but when the user taps on it, it only launches the app, I'm having trouble segueing to that specific product.
It would be much apprieated if someone can help me out!
Thanks!
Here is my code so far:
-(BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler {
if ([userActivity.activityType isEqualToString:Identifier]) {
UITabBarController *tabBarController = (UITabBarController *)self.window.rootViewController;
tabBarController.selectedIndex = 1;
}
return YES;
}
Below checking may help you :