Skip to content
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

Authentication with e-mail link was not working in iOS13. #786

Merged
merged 2 commits into from
Oct 4, 2019
Merged

Authentication with e-mail link was not working in iOS13. #786

merged 2 commits into from
Oct 4, 2019

Conversation

rojo69
Copy link

@rojo69 rojo69 commented Oct 3, 2019

The success alert got removed right away, without notifying the delegate.

Fixes #785

… alert got removed right away, without notifying the delegate.
Now we add one from the alert controller, to prevent objects from getting garbage collected right away.
*/
static void *key;
objc_setAssociatedObject(alertController, key, window, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think using key here is technically undefined behavior since key is uninitialized. Consider using a selector instead, or setting key to nil and using &key.

@rojo69
Copy link
Author

rojo69 commented Oct 3, 2019 via email

@morganchen12
Copy link
Contributor

Thanks!

@morganchen12 morganchen12 merged commit f029d98 into firebase:master Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iOS 13 Email Link Sign In doesn't work
4 participants