Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

88
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda