{ "id": "151156", "key": "TIMOB-19510", "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": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-08T20:42:51.000+0000", "created": "2015-09-14T15:08:31.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:49:27.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": "{{Ti.App.iOS.UserActivity}} has an (undocumented: TIDOC-2306) {{supported}} property but no {{isSupported()}} method.\r\n\r\nI'd expect such a method since the tightly related [Ti.App.iOS.SearchableIndex.isSupported|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App.iOS.SearchableIndex-method-isSupported] also exists, just like [Ti.WatchSession.isSupported|http://docs.appcelerator.com/platform/latest/#!/api/Titanium.WatchSession-property-isSupported] by the way.", "attachment": [], "flagged": false, "summary": "Add Ti.App.iOS.UserActivity.isSupported()", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.0.0.v20150914021515", "comment": { "comments": [ { "id": "365823", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hello , the UserActivity class has a isSupported() method technically.Its actually just .supported, so for example\r\n{code}\r\nvar test = Ti.App.iOS.createUserActivity({\r\nactivityType: 'com.setdirection.home',\r\n title: 'activity 1',\r\n userInfo: {\r\n msg: 'hello world'\r\n }\r\n});\r\n\r\nif(!test.supported){\r\n alert('activity is not supported');\r\n}\r\n\r\nif(test.supported){\r\n alert('activity is supported');\r\n}\r\n{code} \r\nIn this case it should return false as the com.setdirection.home is not a valid activityType", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-05T18:01:04.000+0000", "updated": "2015-10-05T18:02:22.000+0000" }, { "id": "365824", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Uh, yes.. so the ticket is about adding the {{isSupported()}} method. I know the property is there.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-05T18:05:28.000+0000", "updated": "2015-10-05T18:05:28.000+0000" }, { "id": "365825", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry i didn't explain that very well my bad. The .supported is a method which returns the property. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-05T18:10:31.000+0000", "updated": "2015-10-05T18:10:31.000+0000" }, { "id": "365869", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "You mean I can do:\r\n\r\n{code}\r\nif (!test.supported()) {\r\n //\r\n}\r\n{code}\r\n\r\nStill, my point is not to have a method but to have one that is on par with {{Ti.App.iOS.SearchableIndex.isSupported()}} and {{Ti.WatchSession.isSupported()}}.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-06T06:38:46.000+0000", "updated": "2015-10-06T06:38:46.000+0000" }, { "id": "365912", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yeah you could , well actually it's getSupported() but writing .supported calls the same method. The isSupported methods in the other classes essentially do exactly the same thing as this method. Except that the userActivity one has a couple more checks than just if its Xcode 7 and iOS 9. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-06T17:02:44.000+0000", "updated": "2015-10-06T17:02:44.000+0000" }, { "id": "365964", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "OK, so is it a documentation thing or do we need a code change to support {{Ti.App.iOS.UserActivity.isSupported()}} ?", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-06T19:06:09.000+0000", "updated": "2015-10-06T19:06:09.000+0000" }, { "id": "365981", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You can't call isSupported as no method is named that but using the getSupported() or just supported() will do the same thing . Could change the docs and code from getSupported to isSupported , but all that would do is just rename the method thats it. ", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-06T20:14:15.000+0000", "updated": "2015-10-06T20:14:15.000+0000" }, { "id": "366041", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Yes,so that's all that this request is about; adding/renaming the method so we have parity with the other 2 mentioned and developers have a better (think less, do more) experience.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-10-07T07:13:53.000+0000", "updated": "2015-10-07T07:14:05.000+0000" }, { "id": "366120", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": ":PR: https://github.com/appcelerator/titanium_mobile/pull/7283", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-07T18:22:29.000+0000", "updated": "2015-10-08T20:48:34.000+0000" }, { "id": "366289", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR *approved*!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-10-08T20:43:13.000+0000", "updated": "2015-10-08T20:43:13.000+0000" }, { "id": "366291", "author": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank's!", "updateAuthor": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-08T20:48:51.000+0000", "updated": "2015-10-08T20:48:51.000+0000" }, { "id": "413426", "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-16T22:49:27.000+0000", "updated": "2017-03-16T22:49:27.000+0000" } ], "maxResults": 12, "total": 12, "startAt": 0 } } }