0

I have a requirement where I need to use NSUSerActivity and Corespotlight together. I see duplicate search results in spotlight even after I set relatedUniqueIdentifier =uniqueidentifer.

Here is the steps I implemented in my project.

1) Create all CSSearchableItems in appdeleagte didFinishLaunchingWithOptions method.

2) Create NSUSerActivity in specific viewcontroller where relatedUniqueIdentifier = uniqueidentifer(CSSearchableItem)

Appreciate your help.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
V V
  • 774
  • 1
  • 9
  • 29

1 Answers1

0

The issue got resolved after adding requiredUserInfoKeys in NSUSerActivity.

V V
  • 774
  • 1
  • 9
  • 29