twitter-archive / twitter-kit-ios

Twitter Kit is a native SDK to include Twitter content inside mobile apps.
Apache License 2.0
688 stars 449 forks source link

Completion block of TWTRTwitter.sharedInstance().logIn does not execute when authenticate with twitter app for iPhone #79

Open diptinathwani opened 6 years ago

diptinathwani commented 6 years ago

I am using twitter authentication in my iOS app. Using TwitterKit 3.4.0 for authentication. My code is as below:

TWTRTwitter.sharedInstance().logIn { (session, error) in print(session) }

Now my problem is that when I don't install Twitter app on my iPhone, then this code works perfectly. But after installing Twitter app on my iPhone, this login method never execute the completion block.

taichi-jp commented 6 years ago

Check out https://github.com/twitter/twitter-kit-ios/issues/74#issuecomment-408307922