i currently added a parsing component for my ios project and defined it to work with a local data warehouse. all this seems to work fine, except that sometimes I get “This object is not available in the offline cache”, everything is tough, as I understand it, when using local data storage there is no cache (including this in my AppDelegate as follows: Parse enableLocalDatastore];). the problem is that if I open the application again, over time this object will be successfully restored. Has anyone encountered this problem before?
EDIT: the order of the calls I make
PFQuery *query = [PFQuery queryWithClassName:className]; [query fromLocalDatastore]; [query whereKey:someKey equalTo:someObject]; [query includeKey:@"someKey1"]; [query includeKey:@"someKey2"]; [query orderByAscending:@"date"]; [query findObjectsInBackground];
its built for ios sdk 8.0 and parse sdk 1.7.2
thanks!
source share