Skip to content
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

Exceeded the maximum amount of data in NSUbiquitousKeyValueStore #55

Open
viere1234 opened this issue Dec 31, 2023 · 1 comment
Open

Comments

@viere1234
Copy link
Member

viere1234 commented Dec 31, 2023

The current method stores cache data in NSUbiquitousKeyValueStore which only has a maximum total of 1048576 bytes.
As the event data becomes larger, it may exceed the maximum total bytes that can be cached.
Newer data will not be cached, which means that users are likely to experience data loss (when offline).

Consider migrating from NSUbiquitousKeyValueStore to SwiftData (iOS 17) which uses the proven storage architecture of Core Data.

Before this issue is resolved, clearing cache data in the Setting's Advanced Option in the app may solve the problem temporarily.
(User's event tokens won't be affected by this operation since it stored in the Keychain)

@viere1234 viere1234 self-assigned this Dec 31, 2023
@viere1234
Copy link
Member Author

Can be easily reproduced with COSCUP 2023 schedule data.
The schedule can't be accessed without the Internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant