Questions tagged [pfuser]

The PFUser class is a local representation of a user persisted to the Parse Data.

@interface PFUser : PFObject <PFSubclassing>

The PFUser class is a local representation of a user persisted to the Parse Data. This class is a subclass of a PFObject, and retains the same functionality of a PFObject, but also extends it with various user specific methods, like authentication, signing up, and validation uniqueness.

Many APIs responsible for linking a PFUser with Facebook or Twitter have been deprecated in favor of dedicated utilities for each social network. See PFFacebookUtils, PFTwitterUtils and PFAnonymousUtils for more information.

To find more information :

223 questions
10
votes
1 answer

Swift Array.contains() doesn't call Equatable function of PFUser subclass

I have a subclass of PFUser - MYUser class with implementation of Equatable function for comparing objectIds this way: func ==(left: MYUser, right: MYUser) -> Bool { return left.objectId == right.objectId } But when I call Array.contains()…
supp-f
  • 1,317
  • 1
  • 9
  • 14
10
votes
2 answers

iOS with Parse. PFUser.currentuser() not getting cached. Returns nil after app restart

I am building an app with Parse in swift. PFUser.currentuser() always returns nil after the app is stopped and run again. I am using the iOS simulator and the local datastore is enabled. I am using something like this - if PFUser.currentuser() ==…
7
votes
1 answer

Redundance Conformance of User to Protocol PFSubclassing (Swift 2.0)

I just migrated my Swift 1.2 code to Swift 2.0. This code previously works fine. but now there is an error saying Redundance Conformance of User to Protocol PFSubclassing (Swift 2.0) What might be causing this?
JayVDiyk
  • 4,277
  • 22
  • 70
  • 135
7
votes
3 answers

Parse login hang since Facebook 4.0.x with [PFFacebookUtils initializeFacebookWithApplicationLaunchOptions:launchOptions] (semaphore_wait_slow trap)

Since updating Facebook to v4.0.x and the latest Parse libraries, my app is hanging, seemingly when trying to log in the user. My stack trace looks like this: I had a very similar problem previously, answered here: Parse crash when calling…
Smikey
  • 8,106
  • 3
  • 46
  • 74
7
votes
2 answers

Parse crash when calling [PFFacebookUtils initializeFacebook] - semaphore_wait_trap

Since the latest Parse release (v1.6.3) my app gets stuck at launch, and the last breakpoint it hits is [PFFacebookUtils initializeFacebook]; If I hit pause and look at the debugger, the stack trace looks like this: I'm calling [PFFacebookUtils…
Smikey
  • 8,106
  • 3
  • 46
  • 74
7
votes
0 answers

Major bug in Parse: [PFUser currentUser] deadlocks

The issue of PFUser deadlocking from thread contention via parse background calls has been raised numerous times by the Parse community, but Parse has chosen not to deal with this giant bug in the framework. Does anyone know of a work around for…
minch
  • 331
  • 3
  • 13
6
votes
0 answers

Parse User automatically logged out randomly on some app restarts

I've been hearing reports from some people using my app that they're being randomly logged out of their PFUser account ([PFUser currentUser] == nil). Up until a few weeks ago, I've always found that once a user is logged in, they stay logged in…
RL2000
  • 913
  • 10
  • 20
6
votes
1 answer

Access to [PFUser currentUser] causing deadlock

Getting a deadlock occasionally when several threads trying to access [PFUser currentUser] when using parse iOS sdk v1.2.20 It looks like whenever I make a PFQuery call or PFCloud function call, these operations also access [PFUser currentUser], so…
Kevin
  • 1,883
  • 16
  • 23
5
votes
2 answers

iOS - Parse current user fetch not working

I am using parse with iOS/Swift and in my PFUser class I have a field that contains an array of pointers to another PFObject class. When I update the field via the Data Browser calling fetch on PFUser.currentuser does not retrieve this update. All…
Dave Odell
  • 51
  • 1
  • 3
4
votes
1 answer

How do I store ParseObject in both Local Datastore and Parse Cloud on Objective-C iOs 8?

I'd like to save all my objects both locally and in cloud and read from Local Datastore only. All my objects should be saved in both local and online store and local datastore should be synced to Parse Cloud. I want my App to work Offline so as to…
Kingofmit
  • 2,066
  • 1
  • 17
  • 22
4
votes
2 answers

Store PFUser Object in a PFUser key results in a Crash

I've been trying to figure out what I'm doing wrong for about a whole day now, but I have absolutely no idea why the App always crashes. The situation is the following: I've set up a Simple Project with all the required Libraries and Frameworks…
Nico
  • 41
  • 4
3
votes
2 answers

Getting Twitter user details using swift

I have been searching since few days on how I can get user details based on his/her Twitter account ,I'm using twitter login in my application & I haven't found anything about this in Swift, so i'm asking! How can I get the username & email &…
loulou milo
  • 107
  • 1
  • 2
  • 6
3
votes
1 answer

Parse PFUser QueryWithPredicate Not working

I am trying to implement the user's search functionality and for which I am trying to Use NSPredicate but it's not working. I am trying to use LIKE Query. Here is the code I am using NSPredicate *userPredicate = [NSPredicate…
Malav Soni
  • 2,739
  • 1
  • 23
  • 52
3
votes
0 answers

The class PFUser must be registered with registerSubclass before using Parse

I am using Parse 1.7.5 and Swift 1.2 to create an account based application. I created a class User in which I have a property called user of type PFUser. The goal here is to implement all the Parse logic in this class so that in the future, if…
Jessy Naus
  • 54
  • 8
3
votes
1 answer

Update cached PFUser currentUser?

When you sign in using Parse, [PFUser currentUser] is cached locally on the device. I have a problem in that some custom data stored in that user's object can be updated outside of the app, so if the user is still logged in calling [PFUser…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
1
2 3
14 15