Background:
In android Webview:
- Html file saved Locally.
When user is Online
- URL is called and
Page Ais loaded from Website. - certain data is stored in
localStorage('X')onPage A.
- URL is called and
When user is offline
- Html
Page B(saved locally) is displayed. Page Bfetch data fromlocalStorage('X')and store inlocalStorage('Y').Page Bperform operations onlocalStorage('Y')in JavaScript.
- Html
When user is Online again
- Page A fetch data from
localStorage('Y')and store inlocalStorage('X').
- Page A fetch data from
Issue
localStorage('X') value is not passed to localStorage('Y') & vice-versa.
Looking for:
Ways to pass localStorage Value from Website to local HTML file & Vice-Versa