Standard Parse.com setup directly from docs, gives warning "Warning: A long-running operation is being executed on the main thread. " Anybody else getting this?
Seems to be due to: [Parse enableLocalDatastore];
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[Parse enableLocalDatastore];
// Initialize Parse.
[Parse setApplicationId:@"APP_ID"
clientKey:@"CLIENT_ID"];
// [Optional] Track statistics around application opens.
[PFAnalytics trackAppOpenedWithLaunchOptions:launchOptions];
return YES;
}
Now I could run this code using dispatch_async, I guess, except if I want to make a decision at startup based on whether the user is logged in or not. [PFUser *user=[PFUser currentUser];
completely crashes if I don't have [Parse enableLocalDatastore]
; first. So maybe that is another bug or something.
How can their be this many problems doing the most basic things in Parse?