vincentmorneau / apex-pwa

A complete guide for turning an APEX application into a Progressive Web App
MIT License
82 stars 26 forks source link

add sw.js in shared components #7

Closed kerrybad closed 5 years ago

kerrybad commented 5 years ago

Good Day,

im very excited to get test out your push notifications.

I wanted to ask how can i register my my sw.js file?,If i uploaded it to my applications shared components?

i tried .register('#APP_IMAGES.sw.js') , but i am getting an error "Service worker failed to register. DOMException"

I do not have any access to root files.

Thank you for your help in advanced.

Thanks, Kerry

vincentmorneau commented 5 years ago

Hi Kerry,

As the documentation indicates, it is not possible to register a service worker from the APP_IMAGES.

If your business requires push notifications, you should have no trouble demanding for root access :) Or ask a DBA to drop the sw.js there for you.

Good luck.

kerrybad commented 5 years ago

Thank you, i have been given some access :)