{ "id": "150733", "key": "TIMOB-19415", "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-28T20:15:22.000+0000", "created": "2015-08-26T18:11:56.000+0000", "epic": { "id": 149396, "key": "TIMOB-19145", "name": "iOS: iOS 9 Updates", "summary": "iOS: iOS9 Updates", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Low", "id": "4" }, "labels": [ "spotlight" ], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "48795", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "148707", "key": "TIMOB-19006", "fields": { "summary": "iOS9: Implement NSUserActivity Core Spotlight", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-27T22:14:48.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": "For the Titanium.App.iOS.createSearchableItemAttributeSet method, you are required to set the itemContentType property.\r\n\r\nhttps://developer.apple.com/library/prerelease/ios/documentation/CoreSpotlight/Reference/CSSearchableItemAttributeSet_Class/index.html#//apple_ref/occ/instm/CSSearchableItemAttributeSet/initWithItemContentType:\r\n\r\nTo make it easier for developer, we should expose the constants.\r\n\r\nFrom this reference, it seems like Text, Composite, Image and Audio Visual should be exposed:\r\nhttps://developer.apple.com/library/prerelease/ios/documentation/MobileCoreServices/Reference/UTTypeRef/index.html#//apple_ref/doc/constant_group/\r\n\r\nAs a work around, they can use the identifier values from this table for now:\r\nhttps://developer.apple.com/library/ios/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html", "attachment": [], "flagged": false, "summary": "iOS9: Expose UTType constants for SearchableItemAttributeSet", "creator": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "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": "361540", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Tried the following and I get: \r\n\r\n[ERROR] field thumbnailUrl is invalid\r\n\r\n{code}\r\n\t\t\t\tvar itemAttr = Ti.App.iOS.createSearchableItemAttributeSet({\r\n\t\t\t\t\titemContentType: \"public.image\",\r\n\t\t\t\t\ttitle: _row.specie_name,\r\n\t\t\t\t\tcontentDescription: \"Fishing Regulations\",\r\n\t\t\t\t\tthumbnailUrl: \"/images/fish/\" + _row.specie_fish_id + \"/\" + _row.specie_fish_id + \".jpg\",\r\n\t\t\t\t\tkeywords: [_row.specie_name]\r\n\t\t\t\t});\r\n{code}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2015-08-28T02:08:56.000+0000", "updated": "2015-08-28T02:08:56.000+0000" }, { "id": "361544", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~rblalock] I think URL should be all uppercased for {{thumbnailURL}}: http://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.App.iOS.SearchableItemAttributeSet-property-thumbnailURL", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-28T03:08:17.000+0000", "updated": "2015-08-28T03:08:17.000+0000" }, { "id": "361545", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Ok I'll try this. Was going off the iOS property name.", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2015-08-28T03:10:17.000+0000", "updated": "2015-08-28T03:10:17.000+0000" }, { "id": "361577", "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/7085\r\n[~bhatfield], I have exposed text, composite, image and audio visual as you requested.\r\nHowever, sorry I didn't write the docs for these in apidocs. Let me know if we need anything else.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-28T10:49:01.000+0000", "updated": "2015-08-28T10:49:01.000+0000" }, { "id": "361598", "author": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/7087", "updateAuthor": { "name": "bhatfield", "key": "bhatfield", "displayName": "Benjamin Hatfield", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-28T18:31:15.000+0000", "updated": "2015-08-28T18:31:15.000+0000" }, { "id": "415940", "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-27T22:14:48.000+0000", "updated": "2017-03-27T22:14:48.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }