{"action":"opened","issue":{"url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/620","repository_url":"https://api.github.com/repos/aws/aws-sdk-ios","labels_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/620/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/620/comments","events_url":"https://api.github.com/repos/aws/aws-sdk-ios/issues/620/events","html_url":"https://github.com/aws/aws-sdk-ios/issues/620","id":216596981,"number":620,"title":"Callback not called on update/accepted - only update/delta","user":{"login":"zigfreid5","id":4284140,"avatar_url":"https://avatars3.githubusercontent.com/u/4284140?v=3","gravatar_id":"","url":"https://api.github.com/users/zigfreid5","html_url":"https://github.com/zigfreid5","followers_url":"https://api.github.com/users/zigfreid5/followers","following_url":"https://api.github.com/users/zigfreid5/following{/other_user}","gists_url":"https://api.github.com/users/zigfreid5/gists{/gist_id}","starred_url":"https://api.github.com/users/zigfreid5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zigfreid5/subscriptions","organizations_url":"https://api.github.com/users/zigfreid5/orgs","repos_url":"https://api.github.com/users/zigfreid5/repos","events_url":"https://api.github.com/users/zigfreid5/events{/privacy}","received_events_url":"https://api.github.com/users/zigfreid5/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-23T22:56:49Z","updated_at":"2017-03-23T22:56:49Z","closed_at":null,"body":"Upon updating the \"reported\" status of a thing (from the thing), the Shadow service sends a message to the update/accepted topic. The iOS SDK receives this message:\r\n\r\n`2017-03-23 16:48:00.728041 IoTSafetyCloud[11851:8226372] AWSiOSSDK v2.5.2 [Info] AWSSRWebSocket.m line:1733 | void SRFastLog(NSString *__strong, ...) | [SR] NSStreamEventHasSpaceAvailable <__NSCFOutputStream: 0x17011d1c0>\r\n2017-03-23 16:48:00.773293 IoTSafetyCloud[11851:8226372] AWSiOSSDK v2.5.2 [Info] AWSSRWebSocket.m line:1733 | void SRFastLog(NSString *__strong, ...) | [SR] NSStreamEventHasBytesAvailable <__NSCFInputStream: 0x17011ce60>\r\n2017-03-23 16:48:00.773692 IoTSafetyCloud[11851:8226372] AWSiOSSDK v2.5.2 [Info] AWSSRWebSocket.m line:1733 | void SRFastLog(NSString *__strong, ...) | [SR] Received message\r\n`\r\n\r\n... but the registered callback does not execute. It is only triggered when a \"delta\" message is received.\r\n\r\nThe registered callback will execute on update/accepted/rejected/etc. only if the update request originates from the iOS device.\r\n\r\nI am using the iOS SDK to monitor status of a \"Thing\", so this is problematic. The only reliable workaround I've found is to not use the \"reported\" state at all, and only use the \"desired\" state, triggering the delta on EVERY update, whether the data has changed or not."}}
{"actor":{"display_login":"zigfreid5"}}