You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by er...@apache.org on 2022/04/01 13:40:37 UTC

[cordova-plugin-device] branch master updated: doc(ios): add device.model quirks (#158)

This is an automated email from the ASF dual-hosted git repository.

erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-device.git


The following commit(s) were added to refs/heads/master by this push:
     new 3a30f9b  doc(ios): add device.model quirks (#158)
3a30f9b is described below

commit 3a30f9b93bbee7abda99db6df0dd3e7ee2eb6a52
Author: エリス <er...@users.noreply.github.com>
AuthorDate: Fri Apr 1 22:40:32 2022 +0900

    doc(ios): add device.model quirks (#158)
---
 README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index df16473..e38575c 100644
--- a/README.md
+++ b/README.md
@@ -104,6 +104,16 @@ var model = device.model;
 
 - Gets the [product name](https://developer.android.com/reference/android/os/Build.html#PRODUCT) instead of the [model name](https://developer.android.com/reference/android/os/Build.html#MODEL), which is often the production code name. For example, the Nexus One returns `Passion`, and Motorola Droid returns `voles`.
 
+### iOS Quirks
+
+The model value is based on the identifier that Apple supplies.
+
+If you need the exact device name, e.g. iPhone 13 Pro Max, a mapper needs to be created to convert the known identifiers to the associated device name.
+
+Example: The identifier `iPhone14,3` is associated to the device `iPhone 13 Pro Max`.
+
+For the full list of all identifiers to device names, see [here](https://www.theiphonewiki.com/wiki/Models)
+
 ## device.platform
 
 Get the device's operating system name.

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org