Skip to content

PFTwitterUtils silently fails when trying to log in and user has multiple accounts #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
samiq opened this issue Aug 20, 2015 · 8 comments
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Milestone

Comments

@samiq
Copy link

samiq commented Aug 20, 2015

This is an issue introduced with 1.8.0 when trying to log in user to twitter and the user has more than 1 twitter account setup.

This specific issue happens when trying to log into twitter from a uiviewcontroller that is been presented as modal.

This is/was working ok up until 1.7.3.5, where the selection of the account is done as a dialog and not as an action sheet.

For now the only way to make it work is forcing the 1.7.3.5 pod

In the console you can see printed

Warning: Attempt to present <UIAlertController: 0x127685e70> on <LFTabBarController: 0x12763c990> whose view is not in the window hierarchy!

Where LFTabBarController is just a sub class of UITabBarController

@acegreen
Copy link

Seeing the same error

@nlutsenko
Copy link
Contributor

This sounds strange, looking into it.

@nlutsenko
Copy link
Contributor

Valid bug indeed, working on fixing it...

@nlutsenko nlutsenko added type:bug Impaired feature or lacking behavior that is likely assumed and removed needs investigation labels Aug 20, 2015
@nlutsenko nlutsenko added this to the 1.8.2 milestone Aug 20, 2015
@nlutsenko
Copy link
Contributor

Bug is going to happen only on iOS 8.0+, and is going to be fixed whenever the attached PR is landed.
Feel free to start using master after this issue is closed.

@nlutsenko
Copy link
Contributor

Hey guys, the fix for this is checked in and I've just tested locally - it totally works with the latest master and ParseTwitterUtils 1.8.1.
Let me know if there is anything else I can help you with.

@acegreen
Copy link

1.8.1? SDK on Parse.com shows the problem still there

@nlutsenko
Copy link
Contributor

@acegreen README.md has a guide on how to use the latest code from master from this repo, since everything is opensource. We don't rebuild the SDKs every time a new commit is checked in into master, as it would require about 10-15 builds of the SDK every day.

I would suggest using CocoaPods for this actually, since it's the easiest way to install this.

@acegreen
Copy link

@nlutsenko I did consider adding Parse as a pod but i like .frameworks, just easier to import

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

3 participants