logo
down
shadow

Parse.enableLocalDatastore() - Warning: A long-running operation is being executed on the main thread


Parse.enableLocalDatastore() - Warning: A long-running operation is being executed on the main thread

By : نهى محمد
Date : November 19 2020, 03:59 PM
hop of those help? It is a bug and it will be fixed in the next Parse SDK release https://developers.facebook.com/bugs/1537241009878763/
code :


Share : facebook icon twitter icon
Warning: A long-running Parse operation is being executed on the main thread

Warning: A long-running Parse operation is being executed on the main thread


By : nv1620
Date : March 29 2020, 07:55 AM
this one helps. In your filterResults: method you are calling [self.searchResults addObjectsFromArray:objects];, this will add those results to what is already there. In the case where this method is getting hit multiple times before the first query finishes you could end up with the following scenario:
filter 1: "Fran" clear results start query 1 filter 2: "Franc" clear results start query 2 filter 2 finishes in background: add single result to array (contents 1 item) filter 1 finishes in background: add single result to array (contents 2 items)
A long-running operation is being executed on the main thread warning on regular Parse functions

A long-running operation is being executed on the main thread warning on regular Parse functions


By : MiWright
Date : March 29 2020, 07:55 AM
Does that help First of all, I know what this means. The problem is that I'm getting this error on standard calls that can't be converted to background calls. I'm getting this error on app start at: , Wrap the calls in...
code :
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    PFInstallation *currentInstallation = [PFInstallation currentInstallation];

        dispatch_async(dispatch_get_main_queue(), ^(void){
            // any UI updates need to happen in here back on the main thread
        });
})
Warning: A long-running operation is being executed on the main thread. Parse Queries

Warning: A long-running operation is being executed on the main thread. Parse Queries


By : Ramana
Date : March 29 2020, 07:55 AM
seems to work fine To find a user with a particular user name, you just need one query on the PFUser class. Qualify that query with the name you wish to match. The result will be an array of objects that match:
code :
PFQuery *query = [PFUser query];
[query whereKey:@"username" containsString:@"test"];

[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
    if (!error) {
        if (objects.count) {
            self.user = objects[0];
        } else {
            // the query worked, but no users were found with that username
        }
        [self addNode];

    } else {
        // Log details of the failure
        NSLog(@"Error: %@ %@", error, [error userInfo]);
    }
}];
Parse Hello World warning - A long-running operation is being executed on the main thread

Parse Hello World warning - A long-running operation is being executed on the main thread


By : user3514269
Date : March 29 2020, 07:55 AM
Hope this helps I get the following error: , Please try this way,
code :
 PFObject * demoObject = [PFObject objectWithClassName:@"Demo"];
    demoObject[@"dataColumn"] = @"data value";

[demoObject saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error)
     {
         // take any action after saving.
}];
Parse message "Warning: A long-running operation is being executed on the main thread" despite running in back

Parse message "Warning: A long-running operation is being executed on the main thread" despite running in back


By : user3522046
Date : March 29 2020, 07:55 AM
wish of those help I have a lengthy piece of code which downloads data from Parse. This is the shortened version: , Meanwhile, I found the problem.
code :
query.findObjectsInBackgroundWithBlock { ... }
Related Posts Related Posts :
  • CordovaError: Promise rejected with non-error: Error code 65
  • How to append NSMutable strings into a UILabel
  • CustomCell label value does not change
  • Display ad in iAd Bannerview iAd Network
  • Warning: "Could not get traitsetID for iPhone11,6" (Assets.xcassets)
  • Changing root view controller after iOS app has loaded.
  • SocketRocket and iOS certificate pinning
  • Draggable UIButton Snap To a Circle Path
  • Running FireBase in the background
  • resizing UIPopoverController to fit UITableController
  • UICollectionView Exception Crash
  • targeting iOS5 - will it work on iOS6 also?
  • FBLoginView get email
  • Scale UIImages height to UIImageView height
  • Creating a custom progress indicator in ios
  • NSRunLoop API difference
  • Is it possible to inject custom settings into my iOS application "Notifications" settings dialog?
  • UIAlertview not accepting string as message
  • Axis change of stackView giving layout error
  • How to use AVAssetResourceLoader?
  • How to write block definition using properties?
  • iOS connect/reconnect to Bluetooth device when using external-accessory and MFi
  • Saving XMPP Multi User chat messages through XMPP MessageArchiving in iOS
  • Deciding iOS version: pros and cons
  • iOS: Resigned app cannot access keychain through security API
  • How can I set To and Subject fields in an E-Mail being sent by UIDocumentInteractionController?
  • Updating uilabel in view controller underneath another
  • Maximum time Intervel for NSTimer
  • Delete Core Data Entry from Table View Controller
  • How to unload UIViewcontroller from memory?
  • Compressing UIImage as Far as Possible?
  • Optimizing workflow to update internally owned cocoapods dependencies?
  • Formatting an NSDate with Abbreviated Month/Day Names
  • I'm creating a quiz game with 4 answers and I want to add score
  • Tap Gesture to Hide Navigation Bar, Tab Bar, and Status Bar
  • FBSessionStateClosedLoginFailed when I am logged in through Settings
  • CGRect positioning according to center point
  • iOS: Update table view datasource with animations without core data
  • iOS : Where to start for AliPay integration?
  • Routing App Coverage File missing but not needed?
  • Drawing on a zoomable view
  • Append NSStrings and NSNumber to NSMutableArrays and make NSMutable dictionary
  • Terminating app due to uncaught exception 'NSRangeException' when calling dequeueReusableCellWithReuseIdentifier:forInde
  • Collision without physics (Cocos2D + Box2D iOS)
  • Creating a percentage based iOS layout
  • Update tableView row from AppDelegate Swift 4
  • Assigning return value of a class method to a variable error
  • how to display circular progress in delphi ios apps?
  • I can't figure how to fix this Expected identifier or '('
  • How to Test APIs in Swift 4?
  • Link error /Build/Products/Debug-iphonesimulator file not found
  • working with a very large JSON object in iOS
  • Turn off part of the iPhone Screen
  • Phonegap 3.0 app with facebook login using xCode
  • How to add interstitial admob ads to my ios project
  • adding tapku calendar to ios app
  • Add an alertcontroller in a global swift file?
  • Take square image with Cordova (Phonegap) Camera API?
  • Amazon S3 policy allowing only upload not overwrite
  • How to change the UILabel content by tapping?
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org