Parse-SDK-iOS-OSX
Parse-SDK-iOS-OSX copied to clipboard
SaveEventually doesn't work as expected
New Issue Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am not just asking a question.
- [x] I have searched through existing issues.
- [x] I can reproduce the issue with the latest version of Parse Server.
Issue Description
When using SaveEventually on iOS SDK 1.19.4 it doesn't work as expected using mongoDB 5.0.14
Steps to reproduce
Saving something to user table with anonymous user (tested only anonymous).
Example function:
-(void)setBoolParameter : (NSString *)parameterString withBool:(BOOL)boolToSet{
self[parameterString] = [NSNumber numberWithBool:boolToSet];
[self saveEventually:^(BOOL succeeded, NSError *error) // This doen't work and the block never runs. if using saveInBackgroundWithBlock it would work
{
if (error != nil)
{
NSLog(@"Error: User %@ update UNSUCCESFULL", parameterString);
}
else {
NSLog(@"User %@ Succesfully Updated",parameterString);
}
}];
}
Actual Outcome
The values won't save, ever.
Expected Outcome
The values should be saved when possible (when there is a network connection etc.).
Environment
Server
- Parse Server version:
5.4.0
- Operating system:
node16
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
AWS
Database
- System (MongoDB or Postgres):
MongoDB
- Database version:
5.0.14
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Client
- SDK (iOS, Android, JavaScript, PHP, Unity, etc):
iOS
- SDK version:
1.19.4