{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-native/issues/1001","repository_url":"https://api.github.com/repos/driftyco/ionic-native","labels_url":"https://api.github.com/repos/driftyco/ionic-native/issues/1001/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-native/issues/1001/comments","events_url":"https://api.github.com/repos/driftyco/ionic-native/issues/1001/events","html_url":"https://github.com/driftyco/ionic-native/issues/1001","id":203149255,"number":1001,"title":"ScreenOrientation.lockOrientation raises error","user":{"login":"ivanovvitaly","id":1336292,"avatar_url":"https://avatars.githubusercontent.com/u/1336292?v=3","gravatar_id":"","url":"https://api.github.com/users/ivanovvitaly","html_url":"https://github.com/ivanovvitaly","followers_url":"https://api.github.com/users/ivanovvitaly/followers","following_url":"https://api.github.com/users/ivanovvitaly/following{/other_user}","gists_url":"https://api.github.com/users/ivanovvitaly/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanovvitaly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanovvitaly/subscriptions","organizations_url":"https://api.github.com/users/ivanovvitaly/orgs","repos_url":"https://api.github.com/users/ivanovvitaly/repos","events_url":"https://api.github.com/users/ivanovvitaly/events{/privacy}","received_events_url":"https://api.github.com/users/ivanovvitaly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ihadeed","id":13794420,"avatar_url":"https://avatars.githubusercontent.com/u/13794420?v=3","gravatar_id":"","url":"https://api.github.com/users/ihadeed","html_url":"https://github.com/ihadeed","followers_url":"https://api.github.com/users/ihadeed/followers","following_url":"https://api.github.com/users/ihadeed/following{/other_user}","gists_url":"https://api.github.com/users/ihadeed/gists{/gist_id}","starred_url":"https://api.github.com/users/ihadeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihadeed/subscriptions","organizations_url":"https://api.github.com/users/ihadeed/orgs","repos_url":"https://api.github.com/users/ihadeed/repos","events_url":"https://api.github.com/users/ihadeed/events{/privacy}","received_events_url":"https://api.github.com/users/ihadeed/received_events","type":"User","site_admin":false},"assignees":[{"login":"ihadeed","id":13794420,"avatar_url":"https://avatars.githubusercontent.com/u/13794420?v=3","gravatar_id":"","url":"https://api.github.com/users/ihadeed","html_url":"https://github.com/ihadeed","followers_url":"https://api.github.com/users/ihadeed/followers","following_url":"https://api.github.com/users/ihadeed/following{/other_user}","gists_url":"https://api.github.com/users/ihadeed/gists{/gist_id}","starred_url":"https://api.github.com/users/ihadeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihadeed/subscriptions","organizations_url":"https://api.github.com/users/ihadeed/orgs","repos_url":"https://api.github.com/users/ihadeed/repos","events_url":"https://api.github.com/users/ihadeed/events{/privacy}","received_events_url":"https://api.github.com/users/ihadeed/received_events","type":"User","site_admin":false}],"milestone":null,"comments":23,"created_at":"2017-01-25T16:20:29Z","updated_at":"2017-02-27T11:57:14Z","closed_at":null,"body":"ScreenOrientation.lockOrientation raises error, however orientation is changing.\r\nThis happens after updated for [the issue](https://github.com/driftyco/ionic-native/issues/939)\r\n\r\nionic-native: \"2.4.1\"\r\n\r\n```\r\nconsole.error: EXCEPTION: Uncaught (in promise): TypeError: undefined is not an object (evaluating\r\n            'pluginResult.then') http://172.26.9.242:8100/build/main.js:418:21\r\n            http://172.26.9.242:8100/build/main.js:371:19 t@http://172.26.9.242:8100/build/polyfills.js:3:11330\r\n            tryNativePromise@http://172.26.9.242:8100/build/main.js:370:31\r\n            ionViewWillUnload@http://172.26.9.242:8100/build/main.js:62499:96\r\n            _lifecycle@http://172.26.9.242:8100/build/main.js:8632:37\r\n            _willUnload@http://172.26.9.242:8100/build/main.js:8577:24\r\n            _willUnload@http://172.26.9.242:8100/build/main.js:33508:25\r\n            _cleanup@http://172.26.9.242:8100/build/main.js:33442:33\r\n            _trnsFinish@http://172.26.9.242:8100/build/main.js:33367:26 [native code]\r\n            onInvoke@http://172.26.9.242:8100/build/main.js:40827:43\r\n            run@http://172.26.9.242:8100/build/polyfills.js:3:6487 http://172.26.9.242:8100/build/main.js:33311:28\r\n            _didFinish@http://172.26.9.242:8100/build/main.js:11497:29\r\n            _didFinishAll@http://172.26.9.242:8100/build/main.js:11484:28\r\n            onTransitionEnd@http://172.26.9.242:8100/build/main.js:10931:31\r\n            onTransitionEnd@http://172.26.9.242:8100/build/main.js:6512:25\r\n[18:08:43]  console.error: ORIGINAL STACKTRACE:\r\n[18:08:43]  console.error: s@http://172.26.9.242:8100/build/polyfills.js:3:4220\r\n            t@http://172.26.9.242:8100/build/polyfills.js:3:11356\r\n            tryNativePromise@http://172.26.9.242:8100/build/main.js:370:31\r\n            ionViewWillUnload@http://172.26.9.242:8100/build/main.js:62499:96\r\n            _lifecycle@http://172.26.9.242:8100/build/main.js:8632:37\r\n            _willUnload@http://172.26.9.242:8100/build/main.js:8577:24\r\n            _willUnload@http://172.26.9.242:8100/build/main.js:33508:25\r\n            _cleanup@http://172.26.9.242:8100/build/main.js:33442:33\r\n            _trnsFinish@http://172.26.9.242:8100/build/main.js:33367:26 [native code]\r\n            onInvoke@http://172.26.9.242:8100/build/main.js:40827:43\r\n            run@http://172.26.9.242:8100/build/polyfills.js:3:6487 http://172.26.9.242:8100/build/main.js:33311:28\r\n            _didFinish@http://172.26.9.242:8100/build/main.js:11497:29\r\n            _didFinishAll@http://172.26.9.242:8100/build/main.js:11484:28\r\n            onTransitionEnd@http://172.26.9.242:8100/build/main.js:10931:31\r\n            onTransitionEnd@http://172.26.9.242:8100/build/main.js:6512:25\r\n```"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-native/issues/comments/282701105","html_url":"https://github.com/driftyco/ionic-native/issues/1001#issuecomment-282701105","issue_url":"https://api.github.com/repos/driftyco/ionic-native/issues/1001","id":282701105,"user":{"login":"supryin","id":3751338,"avatar_url":"https://avatars.githubusercontent.com/u/3751338?v=3","gravatar_id":"","url":"https://api.github.com/users/supryin","html_url":"https://github.com/supryin","followers_url":"https://api.github.com/users/supryin/followers","following_url":"https://api.github.com/users/supryin/following{/other_user}","gists_url":"https://api.github.com/users/supryin/gists{/gist_id}","starred_url":"https://api.github.com/users/supryin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/supryin/subscriptions","organizations_url":"https://api.github.com/users/supryin/orgs","repos_url":"https://api.github.com/users/supryin/repos","events_url":"https://api.github.com/users/supryin/events{/privacy}","received_events_url":"https://api.github.com/users/supryin/received_events","type":"User","site_admin":false},"created_at":"2017-02-27T11:57:14Z","updated_at":"2017-02-27T11:57:14Z","body":"@JiaLiPassion thank you! I tried. Copied the files into ...node_modules\\ionic-native. Still getting the same error. But this time if I write ScreenOrientation.lockOrientation(\"landscape\"); without setTimeout the video even doesn't start playing. With old version of the plugin the video started to play with that code."}}
{"actor":{"display_login":"supryin"}}