{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/668","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/668/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/668/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/668/events","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/668","id":120955579,"number":668,"title":"webview - hammerspoon protocol not recognized","user":{"login":"trzeciakp","id":4882750,"avatar_url":"https://avatars.githubusercontent.com/u/4882750?v=3","gravatar_id":"","url":"https://api.github.com/users/trzeciakp","html_url":"https://github.com/trzeciakp","followers_url":"https://api.github.com/users/trzeciakp/followers","following_url":"https://api.github.com/users/trzeciakp/following{/other_user}","gists_url":"https://api.github.com/users/trzeciakp/gists{/gist_id}","starred_url":"https://api.github.com/users/trzeciakp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trzeciakp/subscriptions","organizations_url":"https://api.github.com/users/trzeciakp/orgs","repos_url":"https://api.github.com/users/trzeciakp/repos","events_url":"https://api.github.com/users/trzeciakp/events{/privacy}","received_events_url":"https://api.github.com/users/trzeciakp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-08T08:02:46Z","updated_at":"2015-12-08T16:10:46Z","closed_at":null,"body":"Hi,\r\nI've created webview with hammerspoon link and handler in hammerspoon. It works ok in chrome, but in webview I got the error:\r\n\r\n    An Error code: -1002 in NSURLErrorDomain occurred during navigation:\r\n    Description: unsupported URL\r\n\r\nIs there a way to use hammerspoon links in webview?"},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/162931334","html_url":"https://github.com/Hammerspoon/hammerspoon/issues/668#issuecomment-162931334","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/668","id":162931334,"user":{"login":"asmagill","id":8139480,"avatar_url":"https://avatars.githubusercontent.com/u/8139480?v=3","gravatar_id":"","url":"https://api.github.com/users/asmagill","html_url":"https://github.com/asmagill","followers_url":"https://api.github.com/users/asmagill/followers","following_url":"https://api.github.com/users/asmagill/following{/other_user}","gists_url":"https://api.github.com/users/asmagill/gists{/gist_id}","starred_url":"https://api.github.com/users/asmagill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asmagill/subscriptions","organizations_url":"https://api.github.com/users/asmagill/orgs","repos_url":"https://api.github.com/users/asmagill/repos","events_url":"https://api.github.com/users/asmagill/events{/privacy}","received_events_url":"https://api.github.com/users/asmagill/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T16:10:46Z","updated_at":"2015-12-08T16:10:46Z","body":"I need to dig a little deeper and see if I can figure out an official list of recognized URL schemes that WKWebView can handle, but a quick search pulls up this: https://github.com/ShingoFukuyama/WKWebViewTips, especially the \"URL Scheme and App Store Links won't work\" section\r\n\r\nOf course, that code is for IOS, and while the implementations of WKWebView are very similar between IOS and OS X, they're not identical. It should be possible to do something similar, though (i.e. hand off URLs our webview doesn't recognize to the OS).  Let me see what I can work out tonight."}}