Bemærk: Der findes ingen ældre dokumentation tilgængelig for dette element, så du ser den aktuelle dokumentation.
The service worker is the key file to complete the subscription and ensures subscribers are collected on your domain. If you use the native opt-in, adding the service-worker.js file to the root or sub-directory is an important installation step. If you don’t have access to the root directory, but to a subfolder, you can still add the service-worker.js file and complete the installation. Here are the steps to follow –
- Add the service-worker.js file to your subdirectory or a separate folder and copy the path to that folder.
- Login to your PushEngage dashboard and navigate to Site Settings > Advanced Settings
- Add the path for your service-worker.js file and save the changes.
That will be it once these changes are saved, your installation is complete.
Your registration of a service worker will be from PushEngage and through a sub-folder instead of the root directory.
Hvis du alligevel støder på problemer, er du velkommen til at kontakte os ved at klikke her. Vores supportteam vil kunne hjælpe dig.