Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

open twitter login page in browser after authorization from twitter application. #113

Open
ParmarAtul003 opened this issue Mar 27, 2019 · 3 comments

Comments

@ParmarAtul003
Copy link

ParmarAtul003 commented Mar 27, 2019

I have integrated login with Twitter in my application. The issue is when I tap on twitter login button in my app it's open twitter application for authorization, then I press the "Connect" button on twitter app then it redirects to my app and then open twitter login screen again in browser, So how to stop this two authorization when twitter application exists in device. Please let me know.

I have used the following methods:

let logInButton = TWTRLogInButton(logInCompletion: { session, error in
if let session = session {
print("signed in as (session.userName)");
} else {
let errorDescription = error?.localizedDescription ?? "unknown"
print("error: (errorDescription)");
}
})
logInButton.center = self.view.center
self.view.addSubview(logInButton)

AND

TWTRTwitter.sharedInstance().logIn(with: self) { (session, error) in
if (session != nil) {
print("signed in as (session?.userName ?? "")");
} else {
print("error: (error?.localizedDescription ?? "")");
}
}

Both method has same issue, Some time it works fine, open twitter app then authorize and return successfully in my app, But most of the time return in myapp and then open again twitter login page in a browser.

I have used pod 'TwitterKit' v3.4.2.

@jskidd3
Copy link

jskidd3 commented May 4, 2019

Same issue here. 😭

@ghost
Copy link

ghost commented Aug 1, 2019

Same issue here.

@s1lence2012
Copy link

Same issue here....so sad

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants