Operation of the service worker in a keyclock application

Asked

Viewed 21 times

0

I am creating an application, where the login is done by the service "Keyclock" and the application is angular.

When enabling the service worker and running local, it does exactly as expected, displays a message informing the user new system updates, see image below

inserir a descrição da imagem aqui

However when I try to run in production environment with https and everything, nothing happens, the service worker of the Aplication tab is there running, as local, but the message does not appear and if I try to run offline also does not work. At first I think the problem is in the keyclock, but I don’t know how to solve it.

Follows Cod

my ngsw-config

 {
  "$schema": "./node_modules/@angular/service-worker/config/schema.json",
  "index": "/index.html",
  "assetGroups": [
    {
      "name": "app",
      "installMode": "prefetch",
      "resources": {
        "files": [
          "/favicon.ico",
          "/index.html",
          "/manifest.webmanifest",
          "/*.css",
          "/*.js"
        ]
      }
    },
    {
      "name": "assets",
      "installMode": "lazy",
      "updateMode": "prefetch",
      "resources": {
        "files": [
          "/assets/**",
          "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
        ],
        "urls": [
          "https://fonts.googleapis.com/**"
        ]
      }
    }
  ]
}

my update.service inserir a descrição da imagem aqui

In short, is there any additional configuration to run the Worker service when authentication is done by the keyclock? I just need the message to appear in the Prod environment

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.