Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

What's the difference between getModel and getDevice?

I am using the react-native-device-info package. DeviceInfo.getModel() and DeviceInfo.getDevice() return the same result. What’s the difference between these two?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

DeviceInfo.getModel() method returns the model of the device. For example, "iPhone 11 Pro" or "Samsung Galaxy S10".

DeviceInfo.getDevice() method returns the device name. For example, "iPhone11,8" or "SM-G975F".

In some cases, the result of these two methods may be the same, for example, if the device manufacturer does not have a separate device name.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading