-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🐛 Bug Report: [Apple SDK] XPC Connection Interrupted causes App to Freeze #6206
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
Comments
Another thing is: #if canImport(SwiftUI)
openURL(url)
#endif This will throw a warning: Alternative could be to use the |
Thanks @ItzNotABug for the report! A fix is in progress, I'll update again when it's released. |
Thanks for the update @abnegate. |
@ItzNotABug Yep it will target 1.4.x, but we can backport it to the 1.3.x SDK since the issue is present there too. Once the fix PR is merged, I'll follow up on that. |
Closing as resolved in versions 4.0.1 (1.4.x) and 2.0.1 (1.3.x) cc @ItzNotABug |
👟 Reproduction steps
There's a use of
DispatchGroup
inAccount.swift
which most of the time causes the app to freeze when the app opens the Safari App forOAuth
.Flow:
let status = try account.createOAuth2Session(provider: "google")
Safari
browser & goes into backgroundMissing Redirect
page shows up which triggers app open via deep-linkI manually commented out the
DispatchGroup
implementation in theAccount.swift
and it seems to work smooth!Note:
As I have multiple deep-links I cannot directly use
registerOAuthHandler()
on aView
.So, I manually check the
URLComponents
received if valid, I useWebAuthComponent.handleIncomingCookie(from: url)
👍 Expected behavior
App should not freeze.
👎 Actual Behavior
App freezes, sometimes even before opening.
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: