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

RDMR-100 #7460

Closed
wants to merge 6 commits into from
Closed

RDMR-100 #7460

wants to merge 6 commits into from

Conversation

Steven0351
Copy link
Member

An alternative to #7457. This uses Swift concurrency to manage cancellation.

jcesarmobile and others added 4 commits May 9, 2024 19:59
Use Swift Concurrency to manage cancellation of HTTP
Add private hash string extension
Catch errors and forward all errors from urlSession.data except
cancellation errors
…s that require the current state remain true during the duration of the operation
}

open func webView(_ webView: WKWebView, stop urlSchemeTask: WKURLSchemeTask) {
CAPLog.print("scheme stop")
print("cancelling task \(urlSchemeTask.hashString)")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
print("cancelling task \(urlSchemeTask.hashString)")

remove print

with latest changes the app sometimes doesn't start, I just get a white screen and no messages after Loading app at capacitor://localhost...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants