In iOS14, Spotlight search thumbnails will no longer be displayed in Spotlight search.

On iOS14, the thumbnails set for CSSearchableAttributeSet saved in the app are no longer displayed when searching in Spotlight.

Oddly enough, the thumbnails are displayed when validated in the simulator, but only when done on an actual device, the app icon is displayed.

Is this issue due to the change in Spotlight search specs in iOS14?

Is this issue due to the change in Spotlight search specs in iOS 14?

I’m not aware of any such change.

Presumably this process worked just fine on iOS 13? If so, I recommend that you start by filing a bug about the change of behaviour. Please post your bug number, just for the record.

Beyond that, are you able to reproduce this in a small test project?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
I am *so* pleased to see I'm not the only one with this problem: I thought I was losing my mind!

@Quinn: I've filed rdar://FB8811908 (CoreSpotlight thumbnails not shown on devices running iOS 14.0 (Regression from iOS 13.6)). As I say there, this is minimally reproducible (for me, at least). I've also added the main files from a minimal test app to a gist.

The steps I took to consistently reproduce (also in the feedback):

Steps to reproduce:
  1. Create new Xcode project using the iOS App template (Interface: SwiftUI, Life Cycle: UIKit App Delegate, Language: Swift, disable Core Data and Tests)

  2. Change deployment target to iOS 13.6

  3. In ContentView.swift, update ContentView to the following:

Code Block
struct ContentView: View {
var body: some View {
Text("Hello, UIKit!")
.onAppear(perform: {
let attributeSet = CSSearchableItemAttributeSet(
itemContentType: "public.content"
)
attributeSet.displayName = "Hello UIKit?"
attributeSet.thumbnailData = UIImage(
systemName: "hand.thumbsup.fill"
)?.pngData()
let item = CSSearchableItem(
uniqueIdentifier: "uikit.shelloworld",
domainIdentifier: nil,
attributeSet: attributeSet)
CSSearchableIndex.default()
.indexSearchableItems([item]) { (error) in
print(error as Any)
}
})
}
}


4. Deploy to a physical device running iOS 14.0.1 and search for Hello UIKit, and observe the missing image. Contrast to results for the same search in simulator running iOS 14.0, or on devices running iOS 13.6.

Faced the same issue. Is there any progress in the solution search?

I still don't know why thumbnailData isn't working on iOS 14.0 and 14.0.1, but loading image in spotlight via thumbnailURL working fine. For now I just usethumbnailURL on those iOS versions.

In iOS14, Spotlight search thumbnails will no longer be displayed in Spotlight search.
 
 
Q