Where to place the firebase-messaging-sw.js file in erpnext file structure for fcm?

I have placed the service worker js file inside public/js folder and defined in the hooks.py but still it is not getting access in the root directory. Kindly help me out.

got the solution , you need to place it under www directory in frappe.

1 Like