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

176
Vistas
How to get specific mobile device model on webapps using reactjs?

I want to get the model name of mobile device like iphone 7, iphone 8 or iphone 12 when my web app runs on mobile but I only get iphone and not the specific device model. I m currently using react-device-detect.

Is there any way to achieve this? I don't want to use any paid service.

Any help will be appreciated. Thanks.

code:

    import {deviceDetect,mobileModel} from "react-device-detect"

    ....

    useEffect(() => {
     console.log("devicedata deviceDetect", deviceDetect()) // gives object shown in image below
     console.log("devicedata browserName", mobileModel) // gives "iphone"
    },[])

output: ImageOutput

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

0

You can read the user agent api data and do some regular expression to extract the useful information

const userAgent= navigator.userAgent
const device = {
  iPad: /iPad/.test(userAgent),
  iPhone: /iPhone/.test(userAgent),
  Android5: /Android 5/.test(uauserAgent,
 Android4: /Android 4/.test(uauserAgent
}

Read more about detecting information Detect Device - Broswer

MDN User Agent

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