CCIP-App / CCIP-iOS

A Community Checkin with Interactivity Project for iOS app
https://apps.apple.com/app/id1436417025
GNU General Public License v3.0
52 stars 15 forks source link

Exceeded the maximum amount of data in NSUbiquitousKeyValueStore #55

Open viere1234 opened 10 months ago

viere1234 commented 10 months ago

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 commented 10 months ago

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