Android Question Can a WebView store a local variable

dieterp

Active Member
Licensed User
Longtime User
One of the pages that I load in a WebView has 2 filter dropdowns that brings back a resultset from those 2 selections. In a normal browser we store those 2 selections in localstorage variables so that when the user leaves the page, upon their return the dropdown selections will default to the previous selection. I see that this approach won't directly work in a WebView, but is there a way for the same functionality to work by using WebViewExtras etc.?
 

dieterp

Active Member
Licensed User
Longtime User
Hi Erel. Maybe I should just put into context what it is I'd like to do in this scenario so I can get final clarification on the way forward:

1) The website we run is a live scoring website for sports games. You select the region and league you want to view games for and it then displays the games
2) Clicking on a game then opens that game with more detailed match information
3) There are also a few other pages in the site that display info like points logs and statistics

None of these pages need to interact with any B4A attributes except for storing the filter selection criteria. If I don't use a WebView, I then need to redesign all these pages to run natively on Android, iOS and Windows/Mac and maintain/update all 3 apps whenever we make changes. If that is the case, is it still best not to use a WebView?
 
Upvote 0
Top