In the viewDidLoad()
of the Initial View Controller in my app I run this:
let currentUser = PFUser.current()
if currentUser != nil{
self.performSegue(withIdentifier: "toTabs", sender: self)
}
currentUser
is always nil.
I run PFUser.enableAutomaticUser()
in the AppDelegate.Swift after I configure the parse client as per the latest parse server Ios SDK. This should make it so that when ever a user is logged in they stay logged in unless a logout command is run. I have no idea why this isn't happening.