{"action":"created","issue":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/77","labels_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/77/comments","events_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/77/events","html_url":"https://github.com/Telerik-Verified-Plugins/WKWebView/issues/77","id":58371351,"number":77,"title":"using stringByEvaluatingJavaScriptFromString","user":{"login":"revolunet","id":124937,"avatar_url":"https://avatars.githubusercontent.com/u/124937?v=3","gravatar_id":"","url":"https://api.github.com/users/revolunet","html_url":"https://github.com/revolunet","followers_url":"https://api.github.com/users/revolunet/followers","following_url":"https://api.github.com/users/revolunet/following{/other_user}","gists_url":"https://api.github.com/users/revolunet/gists{/gist_id}","starred_url":"https://api.github.com/users/revolunet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/revolunet/subscriptions","organizations_url":"https://api.github.com/users/revolunet/orgs","repos_url":"https://api.github.com/users/revolunet/repos","events_url":"https://api.github.com/users/revolunet/events{/privacy}","received_events_url":"https://api.github.com/users/revolunet/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-20T15:55:49Z","updated_at":"2015-02-21T07:49:23Z","closed_at":"2015-02-21T07:49:23Z","body":"Hey there,\r\n\r\nThanks for the great plugin !\r\n\r\nwhen using it with https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin we have a small issue :\r\n\r\nThis code, which evaluates the position from the webView, returns null :\r\n`return [self.webView stringByEvaluatingJavaScriptFromString:@\"window.plugins.socialsharing.iPadPopupCoordinates();\"];`\r\n\r\nThe result is correct when calling from Safari directly; Any idea whats going on ?\r\n\r\nthanks !"},"comment":{"url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/comments/75360934","html_url":"https://github.com/Telerik-Verified-Plugins/WKWebView/issues/77#issuecomment-75360934","issue_url":"https://api.github.com/repos/Telerik-Verified-Plugins/WKWebView/issues/77","id":75360934,"user":{"login":"EddyVerbruggen","id":1426370,"avatar_url":"https://avatars.githubusercontent.com/u/1426370?v=3","gravatar_id":"","url":"https://api.github.com/users/EddyVerbruggen","html_url":"https://github.com/EddyVerbruggen","followers_url":"https://api.github.com/users/EddyVerbruggen/followers","following_url":"https://api.github.com/users/EddyVerbruggen/following{/other_user}","gists_url":"https://api.github.com/users/EddyVerbruggen/gists{/gist_id}","starred_url":"https://api.github.com/users/EddyVerbruggen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddyVerbruggen/subscriptions","organizations_url":"https://api.github.com/users/EddyVerbruggen/orgs","repos_url":"https://api.github.com/users/EddyVerbruggen/repos","events_url":"https://api.github.com/users/EddyVerbruggen/events{/privacy}","received_events_url":"https://api.github.com/users/EddyVerbruggen/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T07:49:23Z","updated_at":"2015-02-21T07:49:23Z","body":"Hi, I'm afraid the WKWebView equivalent of UIWebViews `stringByEvaluatingJavaScriptFromString` is asynchronous rendering this approach of the SocialSharing plugin incompatible.\r\n\r\nI have updated SocialSharing just now to deal with the null/nil result and position the popup at the bottom of the page (which is what iPhone does and what iPad did on iOS 7)."}}