This is an automated email from the ASF dual-hosted git repository.
jcesarmobile 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 5e95533 docs(android): correct model description (#184)
5e95533 is described below
commit 5e95533739f4cda4c82d9407907c61895ffc7fa7
Author: jcesarmobile <[email protected]>
AuthorDate: Thu Oct 13 19:52:13 2022 +0200
docs(android): correct model description (#184)
---
README.md | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 93ed8fa..89bf544 100644
--- a/README.md
+++ b/README.md
@@ -90,11 +90,13 @@ different across versions of the same product.
### Quick Example
```js
-// Android: Nexus One returns "Passion" (Nexus One code name)
-// Motorola Droid returns "voles"
-// Browser: Google Chrome returns "Chrome"
-// Safari returns "Safari"
-// iOS: for the iPad Mini, returns iPad2,5; iPhone 5 is iPhone 5,1. See
https://www.theiphonewiki.com/wiki/Models
+// Android: Pixel 4 returns "Pixel 4"
+// Motorola Moto G3 returns "MotoG3"
+// Browser: Google Chrome returns "Chrome"
+// Safari returns "Safari"
+// iOS: iPad Mini returns "iPad2,5"
+// iPhone 5 returns "iPhone5,1"
+// See https://www.theiphonewiki.com/wiki/Models
// OS X: returns "x86_64"
//
var model = device.model;
@@ -102,7 +104,7 @@ var model = device.model;
### Android Quirks
-- 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`.
+- Gets the [model
name](https://developer.android.com/reference/android/os/Build.html#MODEL).
### iOS Quirks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]