This is possible with some regex although then next update will include arrays & type’s.
Havent quiet gotten the time to update this as described above, although you can now get data back from the browser in bulk. Just provide a list of the keys and grab the list of values from the custom state. Enjoy!
I’m using @jarrad browser storage plug-in and returning saved data from the visitors browser in bulk and displaying this in a repeating group. There are plug-ins and then there are plug-ins that deliver in spades… This clever add-in is the latter and brings within reach capabilities for my application that are not natively available in bubble’s core platform.
Can this plugin be used to store images on local data ?
How does this work exactly? There are currently 2 things I’d like to accomplish with my wrapped apps:
- load all the static content (the containers, headers, menus etc) with the apps first load so this will be much faster in use.
- store dynamic data also locally so it can be viewed when the device is offline. updating it on connection restore would be awesome but that is a next step. I already have a hard enough time getting my head around this.
I guess the html file is only there as a last safety net although I dont know what use it really has. I would have to recreate the home page view of my app in static html? most of that data is dynamic so that doesnt feel like worth the trouble.
Is anyone using this plugin for this? I guess its clear now that I have no clue of what I’m talking about! ![]()
Also, @jarrad the link to the demo seems changed. How can I access it now?
Sorry about the demo, I haven’t had a chance to make one since i changed everything over…
The code is saying there is a “WebView” element in the apk’s activity, as you know we set a URL for that “WebView” element to display, the app get’s opened, the site loads in the element and all is good,
(noting that this webview container is like a bare bones web browser in the android OS and when enabled has its own cache & stroage, meaning Browser Storage can store data here and even when a user clears their normal browser or other installed browsers that the data will persist)
But, what would the WebView element show in the case of Airplane Mode, No Internet Access, Bubble Servers unavailable or any other reason for the virtual connection between phone and bubble servers being broken??
You will see the same as you do when your desktop browser cant connect to Bubble and it looks (in your app) about as professional as a used car salesman with a wobble board…
The code fixes this by listening for the error that is fired when those problems occur and switches from loading the default url to another url - but this time the url has been set to a file you store in your app or on the device so it will display any resources that are local.
This code is not really what your looking for for two reasons,
-
your after the primary url to be local, for this you store the html file in the apps database and reference it as the primary url.
-
your wanting remote (Bubble) data included in the html file, meaning that html file will also need to include listeners and functions to deal with a connection loss.
Building yourself such a html file though - referencing rather than Bubble data the browser’s data would be a great way of dealing with the case, then just include either an onChange listener or setInterval type function to hit Bubble’s data via an endpoint to update the browsers stored values.
thanks for clearing this up. I will need to find someone to help me set this up as this is far beyond my copy-paste-coding skills
A good way of attacking this is design it in bubble, then get yourself a dev (i can help with this) to make all the script, css & other external resources local resources, then adapt the page elements and functions accordingly, removing the crud along the way, I say this because it takes out the how it needs to look and function aspect from the dev’s point and will mean no back and forth like the typical website company would.
Hi, will this be implemented anytime soon? I think it would be great to use the data in sessions/cookies as data type, would make it easier to use this in repeating groups (which I intend to do).
Thanks
so if i understand correctly, you can now only store single values at a time but you can get them back in bulk?
So if I would want to store a list of things, I would need a bunch of browser storage elements?
You only need the element to be placed on the page once, in cases of using functions such as do every or another accumulating type function, this provides the ability to grab the values in bulk - more so the point to this was the ability to use the browsers stored to fill repeating groups. I will add the store in bulk this week.
Any news about the ability to store list of things?
Can we use this to create offline cache of data?