I recently started using Parse-Server and migrated my Parse application, now when I try to use Parse Local DataStore, I get the following error:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Method requires Pinning enabled.'
This is the code that causes the error:
PFQuery *query = [PFQuery queryWithClassName:@"MY_CLASS_NAME"];
[query fromPinWithName:@"PIN_NAME"];
[query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) {
If I initialize the parsing of the old method by calling:
[Parse setApplicationId:@"APP_ID" clientKey:@"KEY"];
Then Local DataStore works fine, but if I initialize Parse in a new way, I get an error:
[Parse initializeWithConfiguration:[ParseClientConfiguration configurationWithBlock:^(id<ParseMutableClientConfiguration> configuration) {
configuration.applicationId = @"APP_ID";
configuration.clientKey = @"KEY";
configuration.server = @"SERVER";
}]];
I call [Parse enableLocalDatastore];
before Parse is initialized, I tried calling him and also just making sure.
Thanks for your time, hope you can help