{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/2","id":77673873,"html_url":"https://github.com/apache/cordova-plugin-screen-orientation/pull/2","diff_url":"https://github.com/apache/cordova-plugin-screen-orientation/pull/2.diff","patch_url":"https://github.com/apache/cordova-plugin-screen-orientation/pull/2.patch","issue_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues/2","number":2,"state":"open","locked":false,"title":"Update YoikScreenOrientation.m","user":{"login":"diegofesanto","id":17622504,"avatar_url":"https://avatars.githubusercontent.com/u/17622504?v=3","gravatar_id":"","url":"https://api.github.com/users/diegofesanto","html_url":"https://github.com/diegofesanto","followers_url":"https://api.github.com/users/diegofesanto/followers","following_url":"https://api.github.com/users/diegofesanto/following{/other_user}","gists_url":"https://api.github.com/users/diegofesanto/gists{/gist_id}","starred_url":"https://api.github.com/users/diegofesanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegofesanto/subscriptions","organizations_url":"https://api.github.com/users/diegofesanto/orgs","repos_url":"https://api.github.com/users/diegofesanto/repos","events_url":"https://api.github.com/users/diegofesanto/events{/privacy}","received_events_url":"https://api.github.com/users/diegofesanto/received_events","type":"User","site_admin":false},"body":"Hello,\r\nI have similar bug in iOS 9.2.3 with Ionic (https://github.com/gbenvenuti/cordova-plugin-screen-orientation/issues/1) which I solved with NSThread sleep.\r\n\r\nThe new code is here:\r\n- (UIInterfaceOrientationMask) supportedInterfaceOrientations\r\n{\r\n    if ([self.calledWith rangeOfString:@\"portrait\"].location != NSNotFound) {\r\n        return UIInterfaceOrientationMaskPortrait;\r\n    } else if([self.calledWith rangeOfString:@\"landscape\"].location != NSNotFound) {\r\n    \t[NSThread sleepForTimeInterval:0.050f];\r\n        return UIInterfaceOrientationMaskLandscape;\r\n    }\r\n    return UIInterfaceOrientationMaskAll;\r\n}\r\n\r\nThank you.","created_at":"2016-07-15T20:30:41Z","updated_at":"2016-07-15T20:30:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59296c0478c0dd68cacabdbf17da54a7a5b422b1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/2/commits","review_comments_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/2/comments","review_comment_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues/2/comments","statuses_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/statuses/0d1bbcf1957f761ac53768061e6a294b3bfb2709","head":{"label":"diegofesanto:patch-1","ref":"patch-1","sha":"0d1bbcf1957f761ac53768061e6a294b3bfb2709","user":{"login":"diegofesanto","id":17622504,"avatar_url":"https://avatars.githubusercontent.com/u/17622504?v=3","gravatar_id":"","url":"https://api.github.com/users/diegofesanto","html_url":"https://github.com/diegofesanto","followers_url":"https://api.github.com/users/diegofesanto/followers","following_url":"https://api.github.com/users/diegofesanto/following{/other_user}","gists_url":"https://api.github.com/users/diegofesanto/gists{/gist_id}","starred_url":"https://api.github.com/users/diegofesanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegofesanto/subscriptions","organizations_url":"https://api.github.com/users/diegofesanto/orgs","repos_url":"https://api.github.com/users/diegofesanto/repos","events_url":"https://api.github.com/users/diegofesanto/events{/privacy}","received_events_url":"https://api.github.com/users/diegofesanto/received_events","type":"User","site_admin":false},"repo":{"id":63448662,"name":"cordova-plugin-screen-orientation","full_name":"diegofesanto/cordova-plugin-screen-orientation","owner":{"login":"diegofesanto","id":17622504,"avatar_url":"https://avatars.githubusercontent.com/u/17622504?v=3","gravatar_id":"","url":"https://api.github.com/users/diegofesanto","html_url":"https://github.com/diegofesanto","followers_url":"https://api.github.com/users/diegofesanto/followers","following_url":"https://api.github.com/users/diegofesanto/following{/other_user}","gists_url":"https://api.github.com/users/diegofesanto/gists{/gist_id}","starred_url":"https://api.github.com/users/diegofesanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegofesanto/subscriptions","organizations_url":"https://api.github.com/users/diegofesanto/orgs","repos_url":"https://api.github.com/users/diegofesanto/repos","events_url":"https://api.github.com/users/diegofesanto/events{/privacy}","received_events_url":"https://api.github.com/users/diegofesanto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diegofesanto/cordova-plugin-screen-orientation","description":"Mirror of Cordova Plugin Screen Orientation","fork":true,"url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation","forks_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/forks","keys_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/teams","hooks_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/hooks","issue_events_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/issues/events{/number}","events_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/events","assignees_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/assignees{/user}","branches_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/branches{/branch}","tags_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/tags","blobs_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/git/refs{/sha}","trees_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/statuses/{sha}","languages_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/languages","stargazers_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/stargazers","contributors_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/contributors","subscribers_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/subscribers","subscription_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/subscription","commits_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/commits{/sha}","git_commits_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/git/commits{/sha}","comments_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/comments{/number}","issue_comment_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/issues/comments{/number}","contents_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/contents/{+path}","compare_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/merges","archive_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/downloads","issues_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/issues{/number}","pulls_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/pulls{/number}","milestones_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/milestones{/number}","notifications_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/labels{/name}","releases_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/releases{/id}","deployments_url":"https://api.github.com/repos/diegofesanto/cordova-plugin-screen-orientation/deployments","created_at":"2016-07-15T20:17:42Z","updated_at":"2016-07-15T20:17:43Z","pushed_at":"2016-07-15T20:26:48Z","git_url":"git://github.com/diegofesanto/cordova-plugin-screen-orientation.git","ssh_url":"git@github.com:diegofesanto/cordova-plugin-screen-orientation.git","clone_url":"https://github.com/diegofesanto/cordova-plugin-screen-orientation.git","svn_url":"https://github.com/diegofesanto/cordova-plugin-screen-orientation","homepage":null,"size":69,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"4b7a573f53af5531aed2dd4d50559225fee4558f","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":60240212,"name":"cordova-plugin-screen-orientation","full_name":"apache/cordova-plugin-screen-orientation","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/cordova-plugin-screen-orientation","description":"Mirror of Cordova Plugin Screen Orientation","fork":false,"url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation","forks_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/forks","keys_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/teams","hooks_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/hooks","issue_events_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues/events{/number}","events_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/events","assignees_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/assignees{/user}","branches_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/branches{/branch}","tags_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/tags","blobs_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/languages","stargazers_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/stargazers","contributors_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/contributors","subscribers_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/subscribers","subscription_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/subscription","commits_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/contents/{+path}","compare_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/merges","archive_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/downloads","issues_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues{/number}","pulls_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/labels{/name}","releases_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/releases{/id}","deployments_url":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/deployments","created_at":"2016-06-02T07:00:06Z","updated_at":"2016-07-14T14:45:07Z","pushed_at":"2016-07-15T20:30:41Z","git_url":"git://github.com/apache/cordova-plugin-screen-orientation.git","ssh_url":"git@github.com:apache/cordova-plugin-screen-orientation.git","clone_url":"https://github.com/apache/cordova-plugin-screen-orientation.git","svn_url":"https://github.com/apache/cordova-plugin-screen-orientation","homepage":null,"size":69,"stargazers_count":11,"watchers_count":11,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":"git://git.apache.org/cordova-plugin-screen-orientation.git","open_issues_count":1,"forks":5,"open_issues":1,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/2"},"html":{"href":"https://github.com/apache/cordova-plugin-screen-orientation/pull/2"},"issue":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues/2"},"comments":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/apache/cordova-plugin-screen-orientation/statuses/0d1bbcf1957f761ac53768061e6a294b3bfb2709"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"diegofesanto"}}