Page MenuHomePhabricator

Support Spotlight continuation
Closed, ResolvedPublic

Description

In iOS the Spotlight (OS search) API has been augemented with the ability for users to continue searches in the app's search results screen. Given that search is core to Wikipedia use, we already support Spotlight and we offer uniquely tailored search UX (multilingual, etc) this would be useful for our app.

See iOS 10 doc for info

Specifically:

In iOS 9, using search APIs (such as Core Spotlight, NSUserActivity, and web markup) to index content within your app let users search for that content using the Spotlight and Safari search interfaces. In iOS 10, you can use new Core Spotlight symbols to let users continue a search they began in Spotlight when they open your app. To enable this feature, add the CoreSpotlightContinuation key to your Info.plist file, give it the value YES, and update your code to handle an activity continuation of type CSQueryContinuationActionType. The user info dictionary in the NSUserActivity object that you receive in your application:continueUserActivity:restorationHandler: method includes the CSSearchQueryString key, whose value is a string that represents the user’s query.

Event Timeline

Sjoerddebruin renamed this task from Support Spolight continuation to Support Spotlight continuation.Sep 1 2016, 6:40 AM
Fjalapeno moved this task from Needs Engineering Sync to Doing on the iOS-app-v5.2.0-Honey board.

fixing a bug with Spotlight in tandem

Behavior here is flakey because of the OS overriding our section in spotlight with their own results.

Not sure we can test reliably.

I've created T145469 which is an admin task for the PO to follow-up with Apple about improving the consistency and testability of deeplinks and spotlight given our unique place in the OS search system.

Resolved for basic implimentation. See followon task for PM to better define expected behavior and testing after discussion with OS.