{ "id": "161089", "key": "TIMOB-23528", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-12T22:14:04.000+0000", "created": "2016-06-14T23:59:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios10" ], "versions": [], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2016-09-13T10:44:44.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": "iOS 10 offers new API's for the {{CoreSpotlight}} framework. In detail, these are new attributes for the {{CSSearchableItemAttributeSet}} as well as the {{CSSearchQuery}} to query an attribute set by it's attribute name. An API should be proposed here first.", "attachment": [], "flagged": false, "summary": "iOS10: Support new CoreSpotlight APIs", "creator": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 682, "state": "closed", "name": "2016 Sprint 15 SDK", "startDate": "2016-07-16T00:19:20.819Z", "endDate": "2016-07-30T00:19:00.000Z", "completeDate": "2016-08-01T04:40:11.421Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "388481", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "First PR to support the new API's in {{CSSearchableItemAttributeSet}}: https://github.com/appcelerator/titanium_mobile/pull/8070\r\n\r\nWe should clone this ticket for supporting the {{CSSearchQuery}}.\r\n\r\n*Demo*:\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : \"#fff\"\r\n}); \r\n\r\nvar btn = Ti.UI.createButton({\r\n title : \"Add searchable index\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", function() {\r\n addToSearchableIndex();\r\n});\r\n\r\nwin.add(btn);\r\n\r\nvar nav = Ti.UI.iOS.createNavigationWindow({window: win});\r\nnav.open();\r\n\r\nfunction addToSearchableIndex() {\r\n \r\n var itemAttr = Ti.App.iOS.createSearchableItemAttributeSet({\r\n itemContentType: Ti.App.iOS.UTTYPE_AUDIO,\r\n title: 'Who rocks iOS 10?',\r\n \r\n // iOS 10 only\r\n fullyFormattedAddress: \"1732 N 1st St, San Jose, CA 95112\",\r\n postalCode: \"95112\",\r\n thoroughfare: \"N 1st St\",\r\n subThoroughfare: \"1732\",\r\n \r\n keywords: ['appcelerator', 'titanium_mobile', 'ios10', 'corespotlight']\r\n });\r\n\r\n var item = Ti.App.iOS.createSearchableItem({\r\n identifier: 'core-spotlight',\r\n domainIdentifier: 'ios10',\r\n attributeSet: itemAttr\r\n });\r\n\r\n var indexer = Ti.App.iOS.createSearchableIndex();\r\n indexer.addToDefaultSearchableIndex([item], 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('Error: ' + JSON.stringify(e.error));\r\n }\r\n });\r\n}\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-06-16T18:51:52.000+0000", "updated": "2016-06-16T18:57:03.000+0000" }, { "id": "393088", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR (5_5_X): https://github.com/appcelerator/titanium_mobile/pull/8221", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-08-14T10:01:02.000+0000", "updated": "2016-08-14T10:01:02.000+0000" }, { "id": "394435", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified implemented, using:\r\n\r\nMacOS 10.12 (16A239m)\r\nTi SDK 5.5.0.v20160825003900\r\nAppc NPM 4.2.7\r\nAppc CLI 5.5.0-5\r\nAlloy 1.9.1\r\nXcode 8.0 (8S201h)\r\n\r\nAble to create searchableItems and search for them outside of the app, without error. Tested using the provided code, code from the SearchableItemAttributeSet documentation, as well as self made tests that create, configure, and search for the searchable items.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-25T21:26:33.000+0000", "updated": "2016-08-25T21:26:33.000+0000" }, { "id": "394436", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~hansknoechel], created TIMOB-23828 to track {{CSSearchQuery}} implementation", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-25T21:32:22.000+0000", "updated": "2016-08-25T21:32:22.000+0000" }, { "id": "396001", "author": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "body": "note -- should be uniqueIndentifier or you get errors", "updateAuthor": { "name": "jkneen", "key": "jkneen", "displayName": "Jason Kneen", "active": false, "timeZone": "Africa/Ceuta" }, "created": "2016-09-13T10:44:44.000+0000", "updated": "2016-09-13T10:44:44.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }