-
Notifications
You must be signed in to change notification settings - Fork 268
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
syncInBackground: false seems to not work and always leave data undefined #241
Comments
You need to explicitly |
@sunnylqm Thanks!
That gives me the expected result of 10 after 24 hours. It seems to be working for most people, however some of my users are still reporting that it never resets, which means they're stuck so they can't do anything. Are there special cases where it can get stuck and doesn't sync again? |
Oh, I am on iOS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi so I am trying to have my storage reset every 24 hours. Say a user has 10 stamina. Throughout the day, they may use some and run of stamina when it hits 0. After 24 hours, it should reset back to 10 so the user can use it again.
I noticed with
syncInBackground: false
the data is alwaysundefined
. It doesn't seem to wait and sync back to 10 before loading, but is just stuck asundefined
.syncInBackground: true
does seem to update it back to 10 sometimes though if the app is reopened, but not reliably.I am finding these behaviors confusing because it seems like I want
syncInBackground: false
after reading the description, but that doesn't work at all for me, whereassyncInBackground: true
is closer to the desired behavior.Basically I just want the stamina to reset to 10 every 24 hours.
The text was updated successfully, but these errors were encountered: