{"action":"closed","issue":{"url":"https://api.github.com/repos/sagiegurari/simple-web-notification/issues/3","repository_url":"https://api.github.com/repos/sagiegurari/simple-web-notification","labels_url":"https://api.github.com/repos/sagiegurari/simple-web-notification/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/sagiegurari/simple-web-notification/issues/3/comments","events_url":"https://api.github.com/repos/sagiegurari/simple-web-notification/issues/3/events","html_url":"https://github.com/sagiegurari/simple-web-notification/issues/3","id":330640146,"node_id":"MDU6SXNzdWUzMzA2NDAxNDY=","number":3,"title":"How to detect client endpoint to push notifications?","user":{"login":"pwFoo","id":333408,"node_id":"MDQ6VXNlcjMzMzQwOA==","avatar_url":"https://avatars0.githubusercontent.com/u/333408?v=4","gravatar_id":"","url":"https://api.github.com/users/pwFoo","html_url":"https://github.com/pwFoo","followers_url":"https://api.github.com/users/pwFoo/followers","following_url":"https://api.github.com/users/pwFoo/following{/other_user}","gists_url":"https://api.github.com/users/pwFoo/gists{/gist_id}","starred_url":"https://api.github.com/users/pwFoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwFoo/subscriptions","organizations_url":"https://api.github.com/users/pwFoo/orgs","repos_url":"https://api.github.com/users/pwFoo/repos","events_url":"https://api.github.com/users/pwFoo/events{/privacy}","received_events_url":"https://api.github.com/users/pwFoo/received_events","type":"User","site_admin":false},"labels":[{"id":523255062,"node_id":"MDU6TGFiZWw1MjMyNTUwNjI=","url":"https://api.github.com/repos/sagiegurari/simple-web-notification/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"sagiegurari","id":8112599,"node_id":"MDQ6VXNlcjgxMTI1OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8112599?v=4","gravatar_id":"","url":"https://api.github.com/users/sagiegurari","html_url":"https://github.com/sagiegurari","followers_url":"https://api.github.com/users/sagiegurari/followers","following_url":"https://api.github.com/users/sagiegurari/following{/other_user}","gists_url":"https://api.github.com/users/sagiegurari/gists{/gist_id}","starred_url":"https://api.github.com/users/sagiegurari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagiegurari/subscriptions","organizations_url":"https://api.github.com/users/sagiegurari/orgs","repos_url":"https://api.github.com/users/sagiegurari/repos","events_url":"https://api.github.com/users/sagiegurari/events{/privacy}","received_events_url":"https://api.github.com/users/sagiegurari/received_events","type":"User","site_admin":false},"assignees":[{"login":"sagiegurari","id":8112599,"node_id":"MDQ6VXNlcjgxMTI1OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/8112599?v=4","gravatar_id":"","url":"https://api.github.com/users/sagiegurari","html_url":"https://github.com/sagiegurari","followers_url":"https://api.github.com/users/sagiegurari/followers","following_url":"https://api.github.com/users/sagiegurari/following{/other_user}","gists_url":"https://api.github.com/users/sagiegurari/gists{/gist_id}","starred_url":"https://api.github.com/users/sagiegurari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagiegurari/subscriptions","organizations_url":"https://api.github.com/users/sagiegurari/orgs","repos_url":"https://api.github.com/users/sagiegurari/repos","events_url":"https://api.github.com/users/sagiegurari/events{/privacy}","received_events_url":"https://api.github.com/users/sagiegurari/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-06-08T12:33:03Z","updated_at":"2018-06-14T21:15:58Z","closed_at":"2018-06-14T21:15:58Z","author_association":"NONE","body":"Hi, @sagiegurari \r\nI try to explain my question from issue #2, because I think your lib could fine for me if I understand how it works...\r\n\r\nI try to send a push notification triggered by a website event to the subscribed client /endpoint. So each user / device get user specific notifications.\r\n\r\n\r\nI found this demo with closed browser support: https://gauntface.github.io/simple-push-demo/\r\nIt shows the curl command to send a notification to a remote device which works fine with closed browser (android device).\r\n\r\nSo I need to know the registration endpoint of device to trigger a (remote) notification to it. How to detect / get the device registration with your lib?\r\n\r\n\r\nSecond question\r\nYou use FCM to push notifications. Is it possible to push notifications with a custom service-worker.js direct from my own server to the device or is a gateway / service like FCM needed?"}}
{"actor":{"display_login":"pwFoo"}}