Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

87
Views
WKWebView url scheme switch blocks messages

I have a simple WKWebView app in SwiftUI. I have no problems sending and receiving messages from the native code to the JS and vice versa, except when the message is triggered by an app switch, I am using

WebView().onOpenURL(perform: {url in
                let coord = WebView.Coordinator()
                coord.paymentResponse(url: url)
            })

but anything called by onOpenURL can't send messages to the JS inside the WKWebView. The app continues to work fine when messages are initiated through other means after the switch. Ive tried leaving a delay incase the JS isn't loaded, but that doesn't work. Is this a security feature? I don't get any errors the messages simply don't arrive.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!