PiZilla
PiZilla copied to clipboard
Browser based notifications
Show browser based notifications on completion of file upload.
https://github.com/georgeosddev/react-web-notification seems to be a great place to start with, especially since it's react again.
kudos++, if you could do this without adding a new dependency.
@nkprince007 can you tell me which file deals with file upload?
The backend is handled here: https://github.com/NITDgpOS/PiZilla/blob/master/server/routes.js#L16-L42
Once the upload has finished, this is where you can ask the client to push the notification.
Actually, it's better and easier to use the HTML5 Notifications API directly. Refer MDN Docs on how to use it here.
@nkprince007 please review my PR