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

430
Views
PWA: cómo tener "start_url" dinámico en manifest.json

Estoy creando una PWA y encontré un problema con "start_url" en el archivo manifest.json. El sitio web que intento convertir en una PWA depende de los parámetros de consulta y "start_url":"/" no recoge los parámetros de consulta.

Intenté eliminar start_url de manifest.json y eso parece permitir que la aplicación se agregue a la pantalla de inicio (en iOS), pero supongo que en Android el mensaje de instalación no aparecerá sin start_url.

¿Alguien ha experimentado un problema similar?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede crear un manifiesto dinámico como este: https://stackoverflow.com/a/57856162/8716572

Y luego puede hacer algo como "start_url": "your-url?query=" + queryValue.

 <link rel="manifest" id="my-manifest-placeholder"> var myDynamicManifest = { "name": "App name", "short_name": "short", "start_url": "your-url?query=" + queryValue "background_color": "#000000", "theme_color": "#0f4a73", "icons": [{ "src": "icon.png", "sizes": "512x5126", "type": "image/png" }] } const stringManifest = JSON.stringify(myDynamicManifest); const blob = new Blob([stringManifest], {type: 'application/json'}); const manifestURL = URL.createObjectURL(blob); document.querySelector('#my-manifest-placeholder').setAttribute('href', manifestURL); var link = document.createElement('Link'); link.rel = "manifest"; link.setAttribute('href', 'data:application/json;charset=8' + stringManifest)
about 4 years ago · Juan Pablo Isaza Report
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!