pickwick
pickwick

Reputation: 3154

Parse : PFUser.enableAutomaticUser does not create user

When my app starts, I'm calling:

PFUser.enableAutomaticUser()

which, according to the documentation, will cause PFUser.currentUser() to always return a user. It doesn't. Subsequent calls yield nil. I've tried calling PFUser.enableAutomaticUser() immediately before returning currentUser(), but still have the same problem.

I'm compiling with Parse version 1.11.0 and running under iOS 9.2. Is there something I'm missing?

Upvotes: 2

Views: 257

Answers (1)

venky
venky

Reputation: 1185

I too faced same problem. I fixed the issue by calling PFUser.enableAutomaticUser() , only after Parse ApplicationID is set

Parse.setApplicationId(parseApplicationID, clientKey:parseClientKey)
PFUser.enableAutomaticUser()

Upvotes: 2

Related Questions