{ "id": "150439", "key": "TIMOB-19356", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-08-28T09:10:40.000+0000", "created": "2015-08-16T23:49:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "spotlight" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T20:33:20.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Provide access to CSSearchableItemActivityIdentifier on ContinueUserActivity.\r\n\r\nThis allows the developer to access the unique searchableItem they created while publishing to the search index.", "attachment": [], "flagged": false, "summary": "iOS9: Providing access to SearchIdentifiers on ContinueUserActivity", "creator": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ben.bahrenburg@gmail.com", "key": "ben.bahrenburg@gmail.com", "displayName": "Ben Bahrenburg", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 464, "state": "closed", "name": "2015 Sprint 17 SDK", "startDate": "2015-08-15T00:30:59.243Z", "endDate": "2015-08-29T00:30:00.000Z", "completeDate": "2015-08-31T08:10:47.969Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "361568", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Here: https://github.com/appcelerator/titanium_mobile/pull/7081", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-28T08:43:54.000+0000", "updated": "2015-08-28T08:43:54.000+0000" }, { "id": "361569", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "CR and FT passed. approved and merged PR.\r\n\r\nSample code:\r\n{code}\r\nvar searchItems = [];\r\nvar itemAttr = Ti.App.iOS.createSearchableItemAttributeSet({\r\n itemContentType:\"public.image\",\r\n title:\"Titanium Core Spotlight Tutorial\",\r\n contentDescription:\"Tech Example \\nOn: \" + String.formatDate(new Date(),\"short\"),\r\n keywords:[\"Mobile\",\"Appcelerator\",\"Titanium\"]\r\n});\r\n\r\nvar item = Ti.App.iOS.createSearchableItem({\r\n identifier:\"my-id\",\r\n domainIdentifier:\"com.mydomain\",\r\n attributeSet:itemAttr\r\n});\r\nsearchItems.push(item);\r\n\r\nvar indexer = Ti.App.iOS.createSearchableIndex();\r\n\r\nindexer.addToDefaultSearchableIndex(searchItems,function(e){\r\n if(e.success){\r\n alert(\"Press the home button and now search for your keywords\");\r\n }else{\r\n alert(\"Errored: \" + JSON.stringify(e.error));\r\n }\r\n});\r\n\r\nTi.App.iOS.addEventListener(\"continueactivity\",function(e){\r\n //console.log(JSON.stringify(e));\r\n alert(JSON.stringify(e));\r\n});\r\n{code}\r\n\r\nh4. steps to test\r\n1. launch app with sample code\r\n2. exit app, in spotlight key in the keywords like 'titanium'\r\n3. select the corresponding app result\r\n\r\nh4. Expected Result\r\nApp should open with message dialog containing information of the search item.\r\n\r\n[~bhatfield] please consider this for the spotlight docs.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-28T09:10:01.000+0000", "updated": "2015-08-28T09:11:23.000+0000" }, { "id": "414363", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T20:33:20.000+0000", "updated": "2017-03-21T20:33:20.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }