You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is really helpful to understand how the PWA works in Salesforce.
I downloaded the code from github and then pushed it to my scratch org. When I am accessing the "Scoreboard" or "/apex/pwa#/" it tries to register the service worker but the browser is giving error
Hi Brett,
Thanks for this POC.
This is really helpful to understand how the PWA works in Salesforce.
I downloaded the code from github and then pushed it to my scratch org. When I am accessing the "Scoreboard" or "/apex/pwa#/" it tries to register the service worker but the browser is giving error
pwa#/:1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('https://drive-momentum-5993-dev-ed--c.visualforce.com/') with script ('https://drive-momentum-5993-dev-ed--c.visualforce.com/apex/pwasw'): The path of the provided scope ('/') is not under the max scope allowed ('/apex/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope
I am wondering is there any issue with the folder structure where pwasw.js is located and the page it tries to access.
Please let me know if there are any changes required in the location of the file or need to define the scope.
Also in the source code, scorebord.json file has below parameters
"start_url": "https://scoreboard.force.com/volunteer",
"scope":"/volunteer/",
Really wondering what needs to mention here.
I really appreciate your help.
Thanks,
Sarang
The text was updated successfully, but these errors were encountered: