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

145
Vistas
React app pdf link not opening in the swift webview

 <div>
        <a href="https://chat-app-pathum.web.app/pdf/test.pdf" target="_blank" rel="noopener noreferrer">
          chat app
        </a>
      </div>
      <div>
        <a href="/pdf/test.pdf" target="_blank" rel="noopener noreferrer">
          sample link
        </a>
      </div>
      <div>
        <a
          href="http://www.africau.edu/images/default/sample.pdf"
          target="_blank"
          rel="noopener noreferrer"
        >
          hardcoded pdf
        </a>
      </div>

I have a react component with these three links. test.pdf file is saved in the public/pdf folder and the app is hosted in the domain name of https://chat-app-pathum.web.app

For the first link, I gave an absolute path. The second link I gave relative path. The third one is from a different domain name and I gave an absolute path.

All these things are working fine in the web browser. But in the IOS webview (Native mobile app runs the web app in a browser) only the third link opens the document, the other two have no response when I click on top of the link.

How can I fix this at React code level?

This is the link I use https://chat-app-pathum.web.app

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