progressive web apps - How is the Push API's push service URL set? -


the push api defines push service as

a system allows application servers send push messages webapp.

a subscription service created via call serviceworkerregistration .pushmanager.subscribe() without parameters.

how url push service configured? have expected .subscribe() take url parameter service.

the push api's sister spec, generic event delivery using http push, says:

push service: resource used create push message subscriptions (see section 3). url push service configured user agents.

but not specify how configuration take place.

this quote the second document cite answers question:

this document intentionally not describe how push service discovered. discovery of push services left future efforts, if turns out necessary @ all. user agents expected configured url push service.

for browsers shipping built-in knowledge of specific push service, such gcm in case of chrome. mentioned in push notifications on open web article on htmlrocks:

chrome uses gcm handle sending , delivery of push messages.... other browsers free use push service...

but interesting see whether browsers might opened in future, that, suggest, specify our own chosen service in argument subscribe.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -