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

215
Vistas
LaunchUriAsync throwing exception when used in JavaScript

I am trying to call LaunchUriAsync from a cshtml view using JavaScript code. Below is my code.

try {
    let appStatus = Windows.System.Launcher.LaunchUriAsync(new Windows.Foundation.Uri("https://www.google.com")).done(
        function (success) {
            console.log("launch complete");
            if (success) {
                console.log("launch success")
            } else {
                console.log("launch failed")
            }
        }, function (err) {
            console.log("launch error")
        });
}
catch (ex) {
    console.log("launch throws")
    console.log(JSON.stringify(ex))
}

I am getting the output "launch throws" but I am getting empty exception logged to console so not really understanding what is the exception that is thrown. Any idea why this might be throwing?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

launchUriAsync with a lowercase l works:

Windows.System.Launcher.launchUriAsync(new Windows.Foundation.Uri("https://www.google.com"))
    
about 4 years ago · Juan Pablo Isaza Denunciar
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