-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LiveView Native Clients: Core localStorage #37
Comments
Expanding this idea. We should mimic some of the client-side storage options available to the web client. That would include:
We are already using a cookie for the websocket (swiftui client) but I suspect we are not storing that cookie for longer-term use. We need to ensure that the Core client is using a cookie, store that cookie on device, include an API for clearing that cookie. On connection the stored cookie is sent with the new connection so that any stored information is brought in for new connections |
After some discussion, it seems that implementing local storage in core may not be the best path forward and the clients may need to implement their using Core Data for the SwiftUI client. |
@AZholtkevych they're aware of this. We're going to look at this feature after v0.3 |
We may want to have a common storage through Core that is the equivalent of web localStorage. This way we can provide a consistent API on pushing and retrieving values from clients.
localStorage has a limit of 10MB and that seems like a sane limit for us to observe and we should probaby do a FIFO key->value record store where the oldest records are dropped when the limit is reached
The text was updated successfully, but these errors were encountered: