We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On iOS, I'm getting
Main Thread Checker: UI API called on a background thread: -[UIApplication canOpenURL:]
in XCode when "Sign In with Facebook" dialog pops up. Shouldn't we wrap LoginManager calls in DispatchQueue.main.async { }?
LoginManager
DispatchQueue.main.async { }
For me this solved the issue...
The text was updated successfully, but these errors were encountered:
Hi,
this plugin's iOS part was my first contact with Swift, so you're suggestions are very welcome.
Would it be possible for you to share the whole wrapping code, so I can change the docs.
thx & BR
Sorry, something went wrong.
I'm neither experienced with Swift, sorry – was just hit by the issue and then started looking for solutions at Stack Overflow. I wrapped this part:
... DispatchQueue.main.async { self.loginManager!.logIn(readPermissions: [ ReadPermission.publicProfile ], viewController: viewController, completion: { loginResult in switch loginResult { case .failed(let error): failure(error) case .cancelled: cancelled() case .success(let grantedPermissions, let declinedPermissions, let accessToken): success(accessToken.authenticationToken) } }) } ...
docs(): #9: Address main thread checker warning
9eb3fa8
Tried the change with my app. FB still works. Thanks for this.
No branches or pull requests
On iOS, I'm getting
in XCode when "Sign In with Facebook" dialog pops up. Shouldn't we wrap
LoginManager
calls inDispatchQueue.main.async { }
?For me this solved the issue...
The text was updated successfully, but these errors were encountered: