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

Sync bug #14

Open
reedes opened this issue May 25, 2023 · 1 comment
Open

Sync bug #14

reedes opened this issue May 25, 2023 · 1 comment

Comments

@reedes
Copy link
Contributor

reedes commented May 25, 2023

Data for today can be lost if other device adds entry prior to syncing.

Temporary workaround: ensure sync for day on second device completes prior to adding entry. Alternatively stick with one device.

Investigating a fix.

An attempt to reproduce:

(1) Ensure that DCT+ app isn't running on phone. Disable internet (5G, wifi, etc). There should have been no data for 'today' created or synced to iCloud from phone.

(2) On watch running DCT for new 'today' make first entry (eg, coffee drink for 110 cal); be on wi-fi internet so that iCloud sync occurs

(3) Start up DCT+ on phone, still offline, and make first 'today' entry (eg, burrito for 500 cal); enable internet so that iCloud sync occurs

(4) Verify that both entries are present; if not, you've reproduced the bug!

@reedes
Copy link
Contributor Author

reedes commented Jun 6, 2023

I'll be looking at the recently-announced SwiftData framework as an alternative, which may provide a better way to deal with these syncing issues.

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

No branches or pull requests

1 participant