2 years ago
#74964
Nicoara
How to send/store a simple string from a service worker when a notification is received?
I have a website that receives notifications from Firebase and I would like to redirect the user to a specific page (ex: home/news) but the websites requires the user to be logged in so when I try to access home/news it will check for a valid token if there is not one available it will redirect user to login page. After the login, the user will be redirected to home instead of home/news. So what I need is a way to store data from a service worker(even if the website is not opened) and read it when the user opens the site
reactjs
service-worker
0 Answers
Your Answer