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

189
Views
Cómo detectar iPad/IPhone en IOS15 en Javascript

En IOS ahora tengo el siguiente UserAgent:

"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, como Gecko) Versión/15.2 Safari/605.1.15"

en Safari en mi PC tengo lo siguiente:

"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, como Gecko) Versión/15.1 Safari/605.1.15"

pero necesito detectar si mi Script se ejecuta en iPad o iPhone porque necesito instalar MobileDragDrop Polyfill ( https://github.com/timruffles/mobile-drag-drop )

Todas las respuestas aquí en StackOverflow sobre esto son anteriores a IOS 15, donde la propiedad del navegador todavía contenía "IPad" o "IPhone"

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

0

después de más investigación, encontré que esto podría funcionar:

navigator.maxTouchPoints && navigator.userAgent.includes('Safari') && !navigator.userAgent.includes('Chrome')

pero tal vez hay una solución mejor.

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!