emokoro has asked for the wisdom of the Perl Monks concerning the following question:

Please I'm new to Perl, but I will like to know how to use service worker to display Push Notifications on an App built on Perl. Thanks.

Replies are listed 'Best First'.
Re: Service Worker
by Corion (Patriarch) on Aug 08, 2019 at 12:20 UTC

    Your Service Worker makes an HTTP request to your Perl backend to fetch new information. The backend writes new information as a response. Where exactly are you having problems?

      The App doesn't seem to load/call the JS script so as to register or install the service worker on the client's browser. How can I call a JS script to execute on Perl? Thanks.

        This sounds as if your Javascript is not loaded from the HTML page. This is not a Perl problem.

        To go forward with this, can you please reduce your code to say 20 lines that reproduce the problem? Maybe then we can understand better where your problem lies.