Checking if user is logged in (Swift)


I can’t check if user is logged to twitter on the phone.

Twitter.sharedInstance().sessionStore.session() always return nil and Twitter.sharedInstance().sessionStore.existingUserSessions() is always empty.

I am using Fabric.


Thanks for reaching out on this @Bulaznim, I haven’t been able to reproduce this locally, but the sample app of Cannonball may help here as a reference point.


@Bulaznim: I´m using NSUserDefaults to get the state. When the user loged in I set this NSUserDefault to true and when he´s signing out to false
Hope this helps:)


I’m also experiencing the same issue using cocoapods, session is always nil. I’m using the latest version.

Twitter.sharedInstance().logInWithCompletion { (session, error) in