{ "id": "150797", "key": "TIMOB-19423", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-08-28T09:21:43.000+0000", "created": "2015-08-28T08:41:08.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [], "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": "48821", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "150799", "key": "TIDOC-2294", "fields": { "summary": "Ti.WatchSession.recentAppContext documentation is incorrect", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T16:59:05.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": "When I send a new app context from the Watch app the {{watchSessionReceivedAppContext}} event is received by the Titanium app and it has the correct {{appContext}}. But when I then get the value of {{Ti.WatchSession.recentAppContext}} it is still empty.\r\n\r\nWhen I send a new app context from the Titanium app using {{Ti.WatchSession.updateAppContext()}} then {{Ti.WatchSession.recentAppContext}} is correctly updated.\r\n\r\nh2. Reproduce\r\n\r\nUse the Ti 5.0 sample app:\r\nhttps://github.com/appcelerator-developer-relations/appc-sample-ti500\r\n\r\nUse _Send AppCxt_ on the Watch and then check the logs:\r\n\r\n{code}\r\n[INFO] [Ti.WatchSession:watchSessionReceivedAppContext] {\"appContext\":{\"status\":\"App context from watch\"},\"bubbles\":true,\"type\":\"watchSessionReceivedAppContext\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] [updateProperty(isSupported)] true\r\n[INFO] [updateProperty(isPaired)] true\r\n[INFO] [updateProperty(isWatchAppInstalled)] false\r\n[INFO] [updateProperty(isComplicationEnabled)] false\r\n[INFO] [updateProperty(isReachable)] true\r\n[INFO] [updateProperty(recentAppContext)] {}\r\n{code}\r\n\r\nhttps://github.com/appcelerator-developer-relations/appc-sample-ti500", "attachment": [], "flagged": false, "summary": "Ti.WatchSession.recentAppContext not updated by what is received from watch", "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.v20150826100423", "comment": { "comments": [ { "id": "361572", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://developer.apple.com/library/prerelease/ios/documentation/WatchConnectivity/Reference/WCSession_class/index.html#//apple_ref/occ/instp/WCSession/applicationContext\r\nAs according to this, the recentAppContext is the info sent *from* the titanium app, which is the correct behavior depicted here.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-28T09:21:27.000+0000", "updated": "2015-08-28T09:21:27.000+0000" }, { "id": "361573", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "(y) created TIDOC-2294", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-08-28T09:28:04.000+0000", "updated": "2015-08-28T09:28:04.000+0000" }, { "id": "414207", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T16:59:05.000+0000", "updated": "2017-03-21T16:59:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }