{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/1","id":44429391,"html_url":"https://github.com/sohayb/WebViewJavascriptBridge/pull/1","diff_url":"https://github.com/sohayb/WebViewJavascriptBridge/pull/1.diff","patch_url":"https://github.com/sohayb/WebViewJavascriptBridge/pull/1.patch","issue_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/1","number":1,"state":"open","locked":false,"title":"Update WebViewJavascriptBridge.java","user":{"login":"sohayb","id":2195533,"avatar_url":"https://avatars.githubusercontent.com/u/2195533?v=3","gravatar_id":"","url":"https://api.github.com/users/sohayb","html_url":"https://github.com/sohayb","followers_url":"https://api.github.com/users/sohayb/followers","following_url":"https://api.github.com/users/sohayb/following{/other_user}","gists_url":"https://api.github.com/users/sohayb/gists{/gist_id}","starred_url":"https://api.github.com/users/sohayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohayb/subscriptions","organizations_url":"https://api.github.com/users/sohayb/orgs","repos_url":"https://api.github.com/users/sohayb/repos","events_url":"https://api.github.com/users/sohayb/events{/privacy}","received_events_url":"https://api.github.com/users/sohayb/received_events","type":"User","site_admin":false},"body":"Create a convenience interface for injecting data(initialising WebView with pre-fetched data) when the page loads completely to avoid adding another WebViewClient.\r\nExample:\r\n````java\r\n        bridge.setLoadFinishedCallback(new WebViewJavascriptBridge.LoadFinishedCallback() {\r\n            @Override\r\n            public void onLoadFinished() {\r\n                bridge.send(\"Test data to send\", new WebViewJavascriptBridge.WVJBResponseCallback() {\r\n                    @Override\r\n                    public void callback(String data) {\r\n                        Log.d(\"test\", \"Got response! \" + data);\r\n                    }\r\n                });\r\n            }\r\n        });\r\n````\r\nAlso fixed loading the JavaScript for API >= 19.","created_at":"2015-09-08T13:05:01Z","updated_at":"2015-09-08T13:05:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc76b7f080add43c9e0e00edfb0179a8f9f3a0fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/1/comments","statuses_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/statuses/1595ffe6cbb9d0529b06799ef63fb1222b71a21d","head":{"label":"sohayb:Loading-finished-callback","ref":"Loading-finished-callback","sha":"1595ffe6cbb9d0529b06799ef63fb1222b71a21d","user":{"login":"sohayb","id":2195533,"avatar_url":"https://avatars.githubusercontent.com/u/2195533?v=3","gravatar_id":"","url":"https://api.github.com/users/sohayb","html_url":"https://github.com/sohayb","followers_url":"https://api.github.com/users/sohayb/followers","following_url":"https://api.github.com/users/sohayb/following{/other_user}","gists_url":"https://api.github.com/users/sohayb/gists{/gist_id}","starred_url":"https://api.github.com/users/sohayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohayb/subscriptions","organizations_url":"https://api.github.com/users/sohayb/orgs","repos_url":"https://api.github.com/users/sohayb/repos","events_url":"https://api.github.com/users/sohayb/events{/privacy}","received_events_url":"https://api.github.com/users/sohayb/received_events","type":"User","site_admin":false},"repo":{"id":42112010,"name":"WebViewJavascriptBridge","full_name":"sohayb/WebViewJavascriptBridge","owner":{"login":"sohayb","id":2195533,"avatar_url":"https://avatars.githubusercontent.com/u/2195533?v=3","gravatar_id":"","url":"https://api.github.com/users/sohayb","html_url":"https://github.com/sohayb","followers_url":"https://api.github.com/users/sohayb/followers","following_url":"https://api.github.com/users/sohayb/following{/other_user}","gists_url":"https://api.github.com/users/sohayb/gists{/gist_id}","starred_url":"https://api.github.com/users/sohayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohayb/subscriptions","organizations_url":"https://api.github.com/users/sohayb/orgs","repos_url":"https://api.github.com/users/sohayb/repos","events_url":"https://api.github.com/users/sohayb/events{/privacy}","received_events_url":"https://api.github.com/users/sohayb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sohayb/WebViewJavascriptBridge","description":"An cross-platform bridge for sending messages between Obj-C/Java/Javascript and JavaScript in UIWebViews/WebViews","fork":true,"url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge","forks_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/forks","keys_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/teams","hooks_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/hooks","issue_events_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/events{/number}","events_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/events","assignees_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/assignees{/user}","branches_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/branches{/branch}","tags_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/tags","blobs_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/statuses/{sha}","languages_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/languages","stargazers_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/stargazers","contributors_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/contributors","subscribers_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/subscribers","subscription_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/subscription","commits_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/contents/{+path}","compare_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/merges","archive_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/downloads","issues_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues{/number}","pulls_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls{/number}","milestones_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/milestones{/number}","notifications_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/labels{/name}","releases_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/releases{/id}","created_at":"2015-09-08T12:54:19Z","updated_at":"2015-09-08T12:54:20Z","pushed_at":"2015-09-08T13:05:01Z","git_url":"git://github.com/sohayb/WebViewJavascriptBridge.git","ssh_url":"git@github.com:sohayb/WebViewJavascriptBridge.git","clone_url":"https://github.com/sohayb/WebViewJavascriptBridge.git","svn_url":"https://github.com/sohayb/WebViewJavascriptBridge","homepage":"","size":823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sohayb:master","ref":"master","sha":"bdbcb1de876e777e1399e80bbbaaf3ef4a79a660","user":{"login":"sohayb","id":2195533,"avatar_url":"https://avatars.githubusercontent.com/u/2195533?v=3","gravatar_id":"","url":"https://api.github.com/users/sohayb","html_url":"https://github.com/sohayb","followers_url":"https://api.github.com/users/sohayb/followers","following_url":"https://api.github.com/users/sohayb/following{/other_user}","gists_url":"https://api.github.com/users/sohayb/gists{/gist_id}","starred_url":"https://api.github.com/users/sohayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohayb/subscriptions","organizations_url":"https://api.github.com/users/sohayb/orgs","repos_url":"https://api.github.com/users/sohayb/repos","events_url":"https://api.github.com/users/sohayb/events{/privacy}","received_events_url":"https://api.github.com/users/sohayb/received_events","type":"User","site_admin":false},"repo":{"id":42112010,"name":"WebViewJavascriptBridge","full_name":"sohayb/WebViewJavascriptBridge","owner":{"login":"sohayb","id":2195533,"avatar_url":"https://avatars.githubusercontent.com/u/2195533?v=3","gravatar_id":"","url":"https://api.github.com/users/sohayb","html_url":"https://github.com/sohayb","followers_url":"https://api.github.com/users/sohayb/followers","following_url":"https://api.github.com/users/sohayb/following{/other_user}","gists_url":"https://api.github.com/users/sohayb/gists{/gist_id}","starred_url":"https://api.github.com/users/sohayb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sohayb/subscriptions","organizations_url":"https://api.github.com/users/sohayb/orgs","repos_url":"https://api.github.com/users/sohayb/repos","events_url":"https://api.github.com/users/sohayb/events{/privacy}","received_events_url":"https://api.github.com/users/sohayb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sohayb/WebViewJavascriptBridge","description":"An cross-platform bridge for sending messages between Obj-C/Java/Javascript and JavaScript in UIWebViews/WebViews","fork":true,"url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge","forks_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/forks","keys_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/teams","hooks_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/hooks","issue_events_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/events{/number}","events_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/events","assignees_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/assignees{/user}","branches_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/branches{/branch}","tags_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/tags","blobs_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/statuses/{sha}","languages_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/languages","stargazers_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/stargazers","contributors_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/contributors","subscribers_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/subscribers","subscription_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/subscription","commits_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/contents/{+path}","compare_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/merges","archive_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/downloads","issues_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues{/number}","pulls_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls{/number}","milestones_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/milestones{/number}","notifications_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/labels{/name}","releases_url":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/releases{/id}","created_at":"2015-09-08T12:54:19Z","updated_at":"2015-09-08T12:54:20Z","pushed_at":"2015-09-08T13:05:01Z","git_url":"git://github.com/sohayb/WebViewJavascriptBridge.git","ssh_url":"git@github.com:sohayb/WebViewJavascriptBridge.git","clone_url":"https://github.com/sohayb/WebViewJavascriptBridge.git","svn_url":"https://github.com/sohayb/WebViewJavascriptBridge","homepage":"","size":823,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/1"},"html":{"href":"https://github.com/sohayb/WebViewJavascriptBridge/pull/1"},"issue":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/1"},"comments":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sohayb/WebViewJavascriptBridge/statuses/1595ffe6cbb9d0529b06799ef63fb1222b71a21d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":28,"deletions":1,"changed_files":1}}