8000 🐛 Bug Report: [Apple SDK] XPC Connection Interrupted causes App to Freeze · Issue #6206 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
🐛 Bug Report: [Apple SDK] XPC Connection Interrupted causes App to Freeze #6206
Closed
@ItzNotABug

Description

@ItzNotABug

👟 Reproduction steps

There's a use of DispatchGroup in Account.swift which most of the time causes the app to freeze when the app opens the Safari App for OAuth.

Flow:

  1. I used this: let status = try account.createOAuth2Session(provider: "google")
  2. App opens Safari browser & goes into background
  3. Sign In with your Account, the generic Missing Redirect page shows up which triggers app open via deep-link
  4. App freezes with above error after deep link open.

I manually commented out the DispatchGroup implementation in the Account.swift and it seems to work smooth!


Note:
As I have multiple deep-links I cannot directly use registerOAuthHandler() on a View.
So, I manually check the URLComponents received if valid, I use WebAuthComponent.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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0