Web Push - Do they use public servers like google etc?











up vote
1
down vote

favorite












As I understand Web Push, the messages are transferred over a public server like googleapi, mozilla or whatever. Is this correct?



So I can't use this functionality in a private network with a private server without access to the public network? (How can this function be used in a private environment?)










share|improve this question




























    up vote
    1
    down vote

    favorite












    As I understand Web Push, the messages are transferred over a public server like googleapi, mozilla or whatever. Is this correct?



    So I can't use this functionality in a private network with a private server without access to the public network? (How can this function be used in a private environment?)










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      As I understand Web Push, the messages are transferred over a public server like googleapi, mozilla or whatever. Is this correct?



      So I can't use this functionality in a private network with a private server without access to the public network? (How can this function be used in a private environment?)










      share|improve this question















      As I understand Web Push, the messages are transferred over a public server like googleapi, mozilla or whatever. Is this correct?



      So I can't use this functionality in a private network with a private server without access to the public network? (How can this function be used in a private environment?)







      web-push






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 at 7:33

























      asked Nov 6 at 9:25









      powerpete

      655420




      655420
























          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted
          +50










          Yes, Web Push uses a public server to deliver push notifications. This is done to use just one connection to receive push notifications from multiple websites.



          From Firefox documentation:




          What information does Firefox use to provide Web Push?



          Firefox maintains an active connection to a push service in order to receive push messages as long as it is open. The connection ends when Firefox is closed. On our server we store a randomized identifier for your browser, along with a randomized identifier for each site you authorize.



          On Firefox for desktop, the push service is operated by Mozilla. Firefox for Android uses a combination of the Mozilla Web Push service and Google’s Cloud Messaging platform to deliver notifications to Firefox for Android.



          In both cases, push messages are encrypted per the IETF spec and only your copy of Firefox can decipher them. The encrypted messages are stored on the server until they are delivered or expire.




          Similarly, Chrome receives push notification via Google servers. If these servers are inaccessible, Web Push won't work.



          One possible way to use Web Push in an isolated network is to set up your own push server. The code of Mozilla push server is available online, so with some luck you may be able to make it work in your network. Then you'll have to configure all Firefox instances to use your server (the preference is named dom.push.serverURL). I don't know if anything similar is possible with Chrome.



          You may also use Notifications API to show notifications without using Web Push. This only works while the user has your website open, however.






          share|improve this answer





















          • I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
            – powerpete
            Nov 20 at 7:43


















          up vote
          -2
          down vote













          Simple Answer: You can use it in private networks. Google/Mozilla/... is only involved, if the Website author designed it to like so. It's not required.






          share|improve this answer





















            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53169001%2fweb-push-do-they-use-public-servers-like-google-etc%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted
            +50










            Yes, Web Push uses a public server to deliver push notifications. This is done to use just one connection to receive push notifications from multiple websites.



            From Firefox documentation:




            What information does Firefox use to provide Web Push?



            Firefox maintains an active connection to a push service in order to receive push messages as long as it is open. The connection ends when Firefox is closed. On our server we store a randomized identifier for your browser, along with a randomized identifier for each site you authorize.



            On Firefox for desktop, the push service is operated by Mozilla. Firefox for Android uses a combination of the Mozilla Web Push service and Google’s Cloud Messaging platform to deliver notifications to Firefox for Android.



            In both cases, push messages are encrypted per the IETF spec and only your copy of Firefox can decipher them. The encrypted messages are stored on the server until they are delivered or expire.




            Similarly, Chrome receives push notification via Google servers. If these servers are inaccessible, Web Push won't work.



            One possible way to use Web Push in an isolated network is to set up your own push server. The code of Mozilla push server is available online, so with some luck you may be able to make it work in your network. Then you'll have to configure all Firefox instances to use your server (the preference is named dom.push.serverURL). I don't know if anything similar is possible with Chrome.



            You may also use Notifications API to show notifications without using Web Push. This only works while the user has your website open, however.






            share|improve this answer





















            • I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
              – powerpete
              Nov 20 at 7:43















            up vote
            2
            down vote



            accepted
            +50










            Yes, Web Push uses a public server to deliver push notifications. This is done to use just one connection to receive push notifications from multiple websites.



            From Firefox documentation:




            What information does Firefox use to provide Web Push?



            Firefox maintains an active connection to a push service in order to receive push messages as long as it is open. The connection ends when Firefox is closed. On our server we store a randomized identifier for your browser, along with a randomized identifier for each site you authorize.



            On Firefox for desktop, the push service is operated by Mozilla. Firefox for Android uses a combination of the Mozilla Web Push service and Google’s Cloud Messaging platform to deliver notifications to Firefox for Android.



            In both cases, push messages are encrypted per the IETF spec and only your copy of Firefox can decipher them. The encrypted messages are stored on the server until they are delivered or expire.




            Similarly, Chrome receives push notification via Google servers. If these servers are inaccessible, Web Push won't work.



            One possible way to use Web Push in an isolated network is to set up your own push server. The code of Mozilla push server is available online, so with some luck you may be able to make it work in your network. Then you'll have to configure all Firefox instances to use your server (the preference is named dom.push.serverURL). I don't know if anything similar is possible with Chrome.



            You may also use Notifications API to show notifications without using Web Push. This only works while the user has your website open, however.






            share|improve this answer





















            • I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
              – powerpete
              Nov 20 at 7:43













            up vote
            2
            down vote



            accepted
            +50







            up vote
            2
            down vote



            accepted
            +50




            +50




            Yes, Web Push uses a public server to deliver push notifications. This is done to use just one connection to receive push notifications from multiple websites.



            From Firefox documentation:




            What information does Firefox use to provide Web Push?



            Firefox maintains an active connection to a push service in order to receive push messages as long as it is open. The connection ends when Firefox is closed. On our server we store a randomized identifier for your browser, along with a randomized identifier for each site you authorize.



            On Firefox for desktop, the push service is operated by Mozilla. Firefox for Android uses a combination of the Mozilla Web Push service and Google’s Cloud Messaging platform to deliver notifications to Firefox for Android.



            In both cases, push messages are encrypted per the IETF spec and only your copy of Firefox can decipher them. The encrypted messages are stored on the server until they are delivered or expire.




            Similarly, Chrome receives push notification via Google servers. If these servers are inaccessible, Web Push won't work.



            One possible way to use Web Push in an isolated network is to set up your own push server. The code of Mozilla push server is available online, so with some luck you may be able to make it work in your network. Then you'll have to configure all Firefox instances to use your server (the preference is named dom.push.serverURL). I don't know if anything similar is possible with Chrome.



            You may also use Notifications API to show notifications without using Web Push. This only works while the user has your website open, however.






            share|improve this answer












            Yes, Web Push uses a public server to deliver push notifications. This is done to use just one connection to receive push notifications from multiple websites.



            From Firefox documentation:




            What information does Firefox use to provide Web Push?



            Firefox maintains an active connection to a push service in order to receive push messages as long as it is open. The connection ends when Firefox is closed. On our server we store a randomized identifier for your browser, along with a randomized identifier for each site you authorize.



            On Firefox for desktop, the push service is operated by Mozilla. Firefox for Android uses a combination of the Mozilla Web Push service and Google’s Cloud Messaging platform to deliver notifications to Firefox for Android.



            In both cases, push messages are encrypted per the IETF spec and only your copy of Firefox can decipher them. The encrypted messages are stored on the server until they are delivered or expire.




            Similarly, Chrome receives push notification via Google servers. If these servers are inaccessible, Web Push won't work.



            One possible way to use Web Push in an isolated network is to set up your own push server. The code of Mozilla push server is available online, so with some luck you may be able to make it work in your network. Then you'll have to configure all Firefox instances to use your server (the preference is named dom.push.serverURL). I don't know if anything similar is possible with Chrome.



            You may also use Notifications API to show notifications without using Web Push. This only works while the user has your website open, however.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Nov 19 at 16:31









            abacabadabacaba

            1,9441615




            1,9441615












            • I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
              – powerpete
              Nov 20 at 7:43


















            • I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
              – powerpete
              Nov 20 at 7:43
















            I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
            – powerpete
            Nov 20 at 7:43




            I'm shocked! Web Push may be a nice feature. But if its bound to a predefined server of a browser installation, I don't like it. (Thanks for the hint about the firefox prefs)
            – powerpete
            Nov 20 at 7:43












            up vote
            -2
            down vote













            Simple Answer: You can use it in private networks. Google/Mozilla/... is only involved, if the Website author designed it to like so. It's not required.






            share|improve this answer

























              up vote
              -2
              down vote













              Simple Answer: You can use it in private networks. Google/Mozilla/... is only involved, if the Website author designed it to like so. It's not required.






              share|improve this answer























                up vote
                -2
                down vote










                up vote
                -2
                down vote









                Simple Answer: You can use it in private networks. Google/Mozilla/... is only involved, if the Website author designed it to like so. It's not required.






                share|improve this answer












                Simple Answer: You can use it in private networks. Google/Mozilla/... is only involved, if the Website author designed it to like so. It's not required.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 at 15:02









                Ich

                1,0051221




                1,0051221






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53169001%2fweb-push-do-they-use-public-servers-like-google-etc%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Create new schema in PostgreSQL using DBeaver

                    Deepest pit of an array with Javascript: test on Codility

                    Fotorealismo