This involves using the Java Script API to obtain a Push Subscription object, which you then send to your server.