Any way to "refresh" localStorage after changing it via the Filesystem plugin? #6121
Unanswered
nijakobius
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am migrating from Cordova and am using the Filesystem Plugin to copy the
.../LocalStorage/
and.../IndexedDB/
directories in.../Library/WebKit/WebsiteData/Default/....
.This works, but only after an app restart can the data be accessed via
localStorage.getItem('someOldData')
.I have already tried
location.reload()
anddocument.location.href = 'index.html'
but this only reloads the html. The copied LocalStorage is still not available until I manually restart the app.Beta Was this translation helpful? Give feedback.
All reactions