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.
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.