I'm trying to integrate an external app with the browser using localStorage.
The javascript running in browser writes a value on localStorage and an external app reads the value from sqlite DB (localstorage) and deletes the record.
The problem is, when I delete the record from localStorage DB, the browser is not updated, for it keeps in memory the old value, already deleted from localStorage. This way, I can't keep up if the value was already read by the external app.
So, how can I make the browser reload the localstorageDB? If it's not possible, can you suggest an alternative for this issue?
Is the browser and external app navigating to the same webpage, using the same browser? If not then this wont work out so well.
What's your external app written in? It might be easier for the external app to create a small web server (i.e. if its written in nodejs you could use express to create a small web server) and your javascript in your browser could do a request to localhost:8080 (or whatever port you bind to) and you can communicate through this mechanism by just doing http requests from browser => external app.