{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/248","repository_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues","labels_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/248/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/248/events","html_url":"https://github.com/driftyco/ionic-cloud-issues/issues/248","id":195797873,"number":248,"title":"Ionic Deploy: No response from $ionicDeploy.check() after first update","user":{"login":"rkleinert","id":10399313,"avatar_url":"https://avatars.githubusercontent.com/u/10399313?v=3","gravatar_id":"","url":"https://api.github.com/users/rkleinert","html_url":"https://github.com/rkleinert","followers_url":"https://api.github.com/users/rkleinert/followers","following_url":"https://api.github.com/users/rkleinert/following{/other_user}","gists_url":"https://api.github.com/users/rkleinert/gists{/gist_id}","starred_url":"https://api.github.com/users/rkleinert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkleinert/subscriptions","organizations_url":"https://api.github.com/users/rkleinert/orgs","repos_url":"https://api.github.com/users/rkleinert/repos","events_url":"https://api.github.com/users/rkleinert/events{/privacy}","received_events_url":"https://api.github.com/users/rkleinert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-15T12:51:34Z","updated_at":"2016-12-19T16:00:46Z","closed_at":null,"body":"Hi,\r\ni integrated deploy in my app yesterday. The first update check works fine and the update is installed correctly. But when trying to check again, there is no feedback from the check() function.\r\n\r\nThis is my controller code:\r\n\r\n`$rootScope.checkForUpdate = function() {\r\n      $rootScope.show();\r\n      $ionicDeploy.check().then(function(snapshotAvailable) {\r\n        $rootScope.hide();\r\n        if (snapshotAvailable) {\r\n          // When snapshotAvailable is true, you can apply the snapshot\r\n\r\n            var confirmPopup = $ionicPopup.confirm({\r\n              title: 'Update available',\r\n              template: 'Do you want to download the new version?',\r\n              okType: $rootScope.buttonStyle\r\n            });\r\n\r\n            confirmPopup.then(function(res) {\r\n              if(res) {\r\n                confirmPopup.close();\r\n                $rootScope.show();\r\n                $ionicDeploy.download().then(function() {\r\n\r\n                  $ionicDeploy.extract().then(function() {\r\n                    $rootScope.hide();\r\n                    var confirmPopup2 = $ionicPopup.confirm({\r\n                      title: 'Download complete',\r\n                      template: 'Do you want to restart the app now?',\r\n                      okType: $rootScope.buttonStyle\r\n                    });\r\n\r\n                    confirmPopup2.then(function(res2) {\r\n                      confirmPopup2.close();\r\n                      if(res2) {\r\n                        $ionicDeploy.load();\r\n                      }\r\n                    });\r\n                  })\r\n\r\n                });\r\n              } else {\r\n                confirmPopup.close();\r\n              }\r\n            });\r\n        } else {\r\n          var alertPopup = $ionicPopup.alert({\r\n            title: 'No update available',\r\n            template: 'You are using the latest version',\r\n            okType: $rootScope.buttonStyle\r\n          });\r\n\r\n          alertPopup.then(function(res2) {\r\n\r\n          })\r\n        }\r\n      });\r\n    };`\r\n\r\nMy app id is ca83edab. \r\n\r\nThis is the output from console of Xcode simulator:\r\n`\r\nDec 15 08:43:03 0814-100-m com.apple.CoreSimulator.SimDevice.4DD069ED-B9D7-4B7A-B4F6-4518138A5B50.launchd_sim[4501] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit\r\nDec 15 08:43:03 0814-100-m com.apple.CallKit.CallDirectory[4614]: objc[4614]: Class AWDCXCallDirectoryChanged is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libAWDSupportFramework.dylib (0x10b634d50) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/CallKit.framework/XPCServices/com.apple.CallKit.CallDirectory.xpc/com.apple.CallKit.CallDirectory (0x10a4adb70). One of the two will be used. Which one is undefined.\r\nDec 15 08:43:03 0814-100-m logd[4512]: metadata shared cached uuid is null (using logd's shared cache info) com.apple.CallK (4614)\r\nDec 15 08:43:03 0814-100-m logd[4512]: Failed to harvest strings for pathless uuid '00000000-0000-0000-0000-000000000000'\r\nDec 15 08:43:03 0814-100-m com.apple.CallKit.CallDirectory[4614]: [Default] Error performing migrations: Error Domain=NSCocoaErrorDomain Code=513 \"You don’t have permission to save the file “CallDirectory” in the folder “Library”.\" UserInfo={NSFilePath=/var/mobile/Library/CallDirectory, NSUnderlyingError=0x7fded9f033c0 {Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"}}\r\nDec 15 08:43:03 0814-100-m com.apple.CallKit.CallDirectory[4614]: [Default] Error migrating store: Error Domain=NSCocoaErrorDomain Code=513 \"You don’t have permission to save the file “CallDirectory” in the folder “Library”.\" UserInfo={NSFilePath=/var/mobile/Library/CallDirectory, NSUnderlyingError=0x7fded9f033c0 {Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"}}\r\nDec 15 08:43:03 0814-100-m com.apple.CoreSimulator.SimDevice.4DD069ED-B9D7-4B7A-B4F6-4518138A5B50.launchd_sim[4501] (com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for integer: _DirtyJetsamMemoryLimit\r\nDec 15 08:43:03 0814-100-m com.apple.CallKit.CallDirectory[4614]: [Default] Unable to initialize CXCallDirectoryStore for reading and writing: Error Domain=NSCocoaErrorDomain Code=513 \"You don’t have permission to save the file “CallDirectory” in the folder “Library”.\" UserInfo={NSFilePath=/var/mobile/Library/CallDirectory, NSUnderlyingError=0x7fded9c0bb30 {Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"}}\r\nDec 15 08:43:03 0814-100-m callservicesd[4585]: [Default] Error synchronizing call directory extensions: Error Domain=com.apple.CallKit.error.calldirectorymanager Code=0 \"(null)\"\r\nDec 15 08:48:02 0814-100-m routined[4507]: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104\r\nDec 15 08:49:27 0814-100-m com.apple.CoreSimulator.SimDevice.4DD069ED-B9D7-4B7A-B4F6-4518138A5B50.launchd_sim[4501] (com.apple.coreduetd[5528]): Could not find and/or execute program specified by service: 2: No such file or directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/libexec/coreduetd\r\nDec 15 08:49:27 0814-100-m com.apple.CoreSimulator.SimDevice.4DD069ED-B9D7-4B7A-B4F6-4518138A5B50.launchd_sim[4501] (com.apple.coreduetd[5528]): Service setup event to handle failure and will not launch until it fires.\r\n`\r\n\r\nI tested it on my iPhone 5S and emulator, both iOS 10.2\r\n\r\nThanks,\r\n\r\nRobert"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/comments/268001668","html_url":"https://github.com/driftyco/ionic-cloud-issues/issues/248#issuecomment-268001668","issue_url":"https://api.github.com/repos/driftyco/ionic-cloud-issues/issues/248","id":268001668,"user":{"login":"ericb","id":19638,"avatar_url":"https://avatars.githubusercontent.com/u/19638?v=3","gravatar_id":"","url":"https://api.github.com/users/ericb","html_url":"https://github.com/ericb","followers_url":"https://api.github.com/users/ericb/followers","following_url":"https://api.github.com/users/ericb/following{/other_user}","gists_url":"https://api.github.com/users/ericb/gists{/gist_id}","starred_url":"https://api.github.com/users/ericb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericb/subscriptions","organizations_url":"https://api.github.com/users/ericb/orgs","repos_url":"https://api.github.com/users/ericb/repos","events_url":"https://api.github.com/users/ericb/events{/privacy}","received_events_url":"https://api.github.com/users/ericb/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T16:00:45Z","updated_at":"2016-12-19T16:00:45Z","body":"I'm not sure if this is related or not but your logs are showing this error:\r\n\r\n`Error migrating store: Error Domain=NSCocoaErrorDomain Code=513 \"You don’t have permission to save the file “CallDirectory” in the folder “Library”.\" UserInfo={NSFilePath=/var/mobile/Library/CallDirectory, NSUnderlyingError=0x7fded9f033c0 {Error Domain=NSPOSIXErrorDomain Code=13 \"Permission denied\"}}`\r\n\r\nAre you using restricted security settings or other plugins that could be interfering ?"}}
{"actor":{"display_login":"ericb"}}