{ "id": "150804", "key": "TIMOB-19427", "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-30T03:37:10.000+0000", "created": "2015-08-28T12:42:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "watchOS2" ], "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": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:13:26.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": "Most methods, properties and events of {{Ti.WatchSession}} share their names with the Apple Watch side of the session. However, some are not and this could easily lead to mistakes so the more we can align them the better.\r\n\r\n* {{Ti.WatchSession.active()}}\r\n** On Apple Watch: {{activateSession}}\r\n* {{Ti.WatchSession.updateAppContext()}}\r\n** On Apple Watch: {{updateApplicationContext}}\r\n** Then also rename {{Ti.WatchSession.recentAppContext}} to {{Ti.WatchSession.recentApplicationContext}}\r\n* {{Ti.WatchSession:watchSessionReceivedMessage}}\r\n** On Apple Watch: {{(did)ReceiveMessage}}\r\n* {{Ti.WatchSession:watchSessionReceivedUserInfo}}\r\n** On Apple Watch: {{(did)ReceiveUserInfo}}\r\n* {{Ti.WatchSession:watchSessionReceivedFile}}\r\n** On Apple Watch: {{(did)didReceiveFile}}\r\n* {{Ti.WatchSession:watchSessionReceivedAppContext}}\r\n** On Apple Watch: {{(did)didReceiveApplicationContext}}\r\n* {{Ti.WatchSession:watchSessionFinishedUserInfoTransfer}}\r\n** On Apple Watch: {{(did)FinishUserInfoTransfer}}\r\n* {{Ti.WatchSession:watchSessionFinishedFileTransfer}}\r\n** On Apple Watch: {{(did)FinishFileTransfer}}\r\n\r\nThe {{watchSession}} prefix for the {{Ti.WatchSession}} events is a bit redundant anyway and since {{did*}} is more Obj-C/delegate style then JS, we could use {{finishFileTransfer}} for {{didFinishFileTransfer}}.", "attachment": [], "flagged": false, "summary": "Use name method/event names on Titanium and Watch side of session", "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.v20150827202827", "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": "361660", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR here:\r\nhttps://github.com/appcelerator/titanium_mobile/pull/7091", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-29T12:40:00.000+0000", "updated": "2015-08-29T12:40:00.000+0000" }, { "id": "361662", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "(y) (I guess I'll have to update the sample app now..)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-08-29T18:14:18.000+0000", "updated": "2015-08-29T18:14:18.000+0000" }, { "id": "361664", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PR Approved and merged.\r\nYes [~fokkezb], time to update.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-30T03:36:57.000+0000", "updated": "2015-08-30T03:38:40.000+0000" }, { "id": "361733", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "As we discussed on Flow, we may get in trouble with using present tense for events that start with {{did}} in iOS as there could also be {{will}} events with the same name, just like {{willResume}} and {{didResume}} which we translated to {{resume}} and {{resumed}} for that reason. We should have conventions for that in http://docs.appcelerator.com/platform/latest/#!/guide/Style_and_Conventions or some other guide and maybe change the WatchSession events to past tense ({{finishedfiletransfer}} instead of {{finishfiletransfer}}) but probably after 5.0", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-08-31T09:10:14.000+0000", "updated": "2015-08-31T09:10:14.000+0000" }, { "id": "413289", "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:13:26.000+0000", "updated": "2017-03-16T22:13:26.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }