{"_id":"@alschytte/cordova-mydevice","_rev":"2-4115290e86cf65b696d8760d8486225f","name":"@alschytte/cordova-mydevice","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alschytte/cordova-mydevice","version":"1.0.0","description":"Modified Cordova Device Plugin","types":"./types/index.d.ts","cordova":{"id":"@alschytte/cordova-mydevice","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ascsi/cordova-plugin.git"},"keywords":["cordova","device","cordova-android"],"scripts":{"test":""},"author":{"name":"Apache Software Foundation"},"license":"Apache-2.0","engines":{"cordovaDependencies":{"2.1.0":{"cordova-android":">4.0.0"}}},"bugs":{"url":"https://github.com/ascsi/cordova-plugin/issues"},"homepage":"https://github.com/ascsi/cordova-plugin#readme","gitHead":"4da1b6c27f4a5c751293c1b2e0456114e9787ebf","_id":"@alschytte/cordova-mydevice@1.0.0","_nodeVersion":"9.11.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-k/rGKaSIiLK8tw57NmRHeoi8RrHw90/8G7JDlA8ZLF5enGYkkwHHiVpg7fXM0l8sUIBrXqH0oV6wGrFbPjiO8A==","shasum":"58f8e6ad46d27471d9f94ec8685cbbeb6d370c89","tarball":"https://registry.npmjs.org/@alschytte/cordova-mydevice/-/cordova-mydevice-1.0.0.tgz","fileCount":6,"unpackedSize":14862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAgV6CRA9TVsSAnZWagAAk4EQAJJx+PxRLywjayvAVPw7\nikwVACVefIk2zZPxWQDdGtZyFnonOOLt7IHDzEeEs3fWPS4KuJRAoULgmwlC\nfeGgTxIht2Yl0blA9/YAYT0XAF/XSO8lq8XGMkQ+73YmNMBUQ2W4+kvkxAni\nnIdTKmSystPjPojdrLj/q9t8fSDSojxyu4xmyhvD3ULKa6q5qcGRlqMUUZ+h\nxBvk8ensiVw4dEeQEIhKHyNREk7xyyUJz/mXrQ9JIQIdIjmxMiZE+XWjqmPt\nS8GPEpeMuAKrzMLkCjGlhxN9APg3EUVK30vbvaQRG4HozZI0u+ow4CPQPbLI\nEYmtwdFfKouprf8apslBQ33Hb4fi9v4rwpLvN7akNKabOZRmSZgA0dc3sWQh\nqK4bOiVRmxZAsZgulHZbEYchekPzvkWx85dxHw80ts41ctsKzHK6H4RSBguk\nLI2soUlPACMn4K2jnFNaoiBM7p2p9g7P7uCcpn6KPuswdxEW3VOMZQ1MYbAY\nND3PsvpN0EL4tmTOWghe8Vs0kmf2p+zV0q8l9nCHOkw9ydk4mxW8JN+lKJvr\nMPM2GeJdAbk5ZKSLSKKcL+2l0KaSpG/R9W6ISGUfAkfk+ZOKXbvstRASoADk\njgArWtJ+Ygdd5TxIZGZFjTNPFHx0ZLZD2L7ToXQ3SMhheNDvOgQRPBx61Ed2\n2Dz0\r\n=DsRB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDE4nLApt6oQcPncVAlZqtcKzcaACPhjx9sKWX5DJX/kAIhAIYrvlBXyPczTZI0syamyJ1PIQtJvuFGHVR5h+1T6MSr"}]},"maintainers":[{"name":"alschytte","email":"allan.schytt@gmail.com"}],"_npmUser":{"name":"alschytte","email":"allan.schytt@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-mydevice_1.0.0_1560413561758_0.6711131357422155"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alschytte/cordova-mydevice","version":"1.0.1","description":"Modified Cordova Device Plugin","types":"./types/index.d.ts","cordova":{"id":"@alschytte/cordova-mydevice","platforms":["android"]},"repository":{"type":"git","url":"git+https://github.com/ascsi/cordova-plugin.git"},"keywords":["cordova","device","cordova-android"],"scripts":{"test":""},"author":{"name":"Apache Software Foundation"},"license":"Apache-2.0","engines":{"cordovaDependencies":{"2.1.0":{"cordova-android":">4.0.0"}}},"bugs":{"url":"https://github.com/ascsi/cordova-plugin/issues"},"homepage":"https://github.com/ascsi/cordova-plugin#readme","gitHead":"4d36c679d33bdff378c3a664a251510c1eada209","_id":"@alschytte/cordova-mydevice@1.0.1","_nodeVersion":"9.11.1","_npmVersion":"6.9.0","dist":{"integrity":"sha512-OIm6FGNGP8hd6Gd9ajZbdKp2tbsRelSk872W62pccWfcBHKFpcChAtGF1oAGdK1/C+bgG2eJeaTI3eKyaPv+3A==","shasum":"49195407f0ab1135d4e98c8438003c3d361f8d87","tarball":"https://registry.npmjs.org/@alschytte/cordova-mydevice/-/cordova-mydevice-1.0.1.tgz","fileCount":6,"unpackedSize":14862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAggSCRA9TVsSAnZWagAAadUP/2XxSPuX008sLqVezWIY\nw7fjSuJEQdnfv2wBvMKCX3uRO2aKCpir7ZWrIYfBHq04kOwplskwWSMD4n7j\n9PooZYjQOsfwfL5sZj5kVqEyHW9BDb1MWhjOfPvvbGlXE7pvUevB3Tdzh1Dy\nYFg4qi6w05Q9UcmcR/ZpCg9jnKRjLGvmUYNcCERg5A3PKvVrB3NdvY5JQMYF\nkvzoN6m18Mjo+0AwS1APH7bPccLcTn54nRtK8NyWQKUgGX2juma8VUguHL7q\n8cHHMBRmXe2oC3GZt4KCwn+t1aMTfC2L7povhBvyTi/soVhajDymEmJEyAd4\nyFKfvHCwoVg1+hMooRH2jDhtlVMbE6s9ocJczItiMLLUbDHIJ7dqOUoIBaKs\nUOJ+Bkz/wEXkoto1dZyz0AKZIAB3GZLjnHceYPSazpde9MmJCGhpvviHy/HF\n4PkqYQx4DaL5Xg4YY0oL8N/eTPPlfCTh7P0PwYn8IsMgB/l5s4r2k9j5DrA/\nD0F09GaGRvbM3KQYZF4Orqt428v1QvdRlIpyGsUuMN45c98pQ1Zl0ztLjZMH\nCmPqr57Qm9yqN2+cXYI+Mn9q48rsh+wF3ydpLf6U1rhnLeFxFPsOunUl3d5w\nKUiCpVN41NyT9uUKh06BRkQBhRtMJ35c6+OLT3GuZli3NJ9E6eqZwPbs0abB\nGH20\r\n=qZhb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSj5LoDPox23n/9qof6++GJEtXizrj0GMQKzDdVsgeywIgIRWyy4fZRfOIO8ZrFFmJbSF3X2pEDANyHd+HHvrkTGI="}]},"maintainers":[{"name":"alschytte","email":"allan.schytt@gmail.com"}],"_npmUser":{"name":"alschytte","email":"allan.schytt@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cordova-mydevice_1.0.1_1560414226224_0.9094028581263491"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-13T08:12:41.731Z","1.0.0":"2019-06-13T08:12:41.849Z","modified":"2022-04-04T13:38:57.217Z","1.0.1":"2019-06-13T08:23:46.335Z"},"maintainers":[{"name":"alschytte","email":"allan.schytt@gmail.com"}],"description":"Modified Cordova Device Plugin","homepage":"https://github.com/ascsi/cordova-plugin#readme","keywords":["cordova","device","cordova-android"],"repository":{"type":"git","url":"git+https://github.com/ascsi/cordova-plugin.git"},"author":{"name":"Apache Software Foundation"},"bugs":{"url":"https://github.com/ascsi/cordova-plugin/issues"},"license":"Apache-2.0","readme":"\r\n<!--\r\n# license: Licensed to the Apache Software Foundation (ASF) under one\r\n#         or more contributor license agreements.  See the NOTICE file\r\n#         distributed with this work for additional information\r\n#         regarding copyright ownership.  The ASF licenses this file\r\n#         to you under the Apache License, Version 2.0 (the\r\n#         \"License\"); you may not use this file except in compliance\r\n#         with the License.  You may obtain a copy of the License at\r\n#\r\n#           http://www.apache.org/licenses/LICENSE-2.0\r\n#\r\n#         Unless required by applicable law or agreed to in writing,\r\n#         software distributed under the License is distributed on an\r\n#         \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n#         KIND, either express or implied.  See the License for the\r\n#         specific language governing permissions and limitations\r\n#         under the License.\r\n-->\r\n\r\n# cordova-plugin\r\n\r\nThis plugin defines a global `device` object, which describes the device's hardware and software.\r\nAlthough the object is in the global scope, it is not available until after the `deviceready` event.\r\n\r\nStraight copy from apache cordova sample - used to extend\r\n\r\n```js\r\nplugman install --platform android --project . --plugin @alschytte/cordova-mydevice\r\n\r\nplugman uninstall --platform android --project .--plugin @alschytte/cordova-mydevice\r\n```\r\n\r\n```js\r\ndocument.addEventListener(\"deviceready\", onDeviceReady, false);\r\nfunction onDeviceReady() {\r\n    console.log(mydevice.cordova);\r\n}\r\n```\r\n\r\n## Installation\r\n\r\n    cordova plugin add @alschytte/cordova-mydevice\r\n\r\n## Properties\r\n\r\n- mydevice.cordova\r\n- mydevice.model\r\n- mydevice.platform\r\n- mydevice.uuid\r\n- mydevice.version\r\n- mydevice.manufacturer\r\n- mydevice.isVirtual\r\n- mydevice.serial\r\n\r\n## mydevice.cordova\r\n\r\nGet the version of Cordova running on the device.\r\n\r\n## mydevice.model\r\n\r\nThe `mydevice.model` returns the name of the device's model or\r\nproduct. The value is set by the device manufacturer and may be\r\ndifferent across versions of the same product.\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar model = mydevice.model;\r\n```\r\n\r\n### Quirks\r\n\r\n- Gets the [product name](http://developer.android.com/reference/android/os/Build.html#PRODUCT) instead of the [model name](http://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`.\r\n\r\n## mydevice.platform\r\n\r\nGet the device's operating system name.\r\n\r\n```js\r\nvar string = mydevice.platform;\r\n```\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar devicePlatform = mydevice.platform;\r\n```\r\n\r\n## mydevice.uuid\r\n\r\nGet the device's Universally Unique Identifier ([UUID](http://en.wikipedia.org/wiki/Universally_Unique_Identifier)).\r\n\r\n```js\r\nvar string = mydevice.uuid;\r\n```\r\n\r\n### Description\r\n\r\nThe details of how a UUID is generated are determined by the device manufacturer and are specific to the device's platform or model.\r\n\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar deviceID = mydevice.uuid;\r\n```\r\n\r\n## mydevice.version\r\n\r\nGet the operating system version.\r\n\r\n    var string = mydevice.version;\r\n\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar deviceVersion = mydevice.version;\r\n```\r\n\r\n## mydevice.manufacturer\r\n\r\nGet the device's manufacturer.\r\n\r\n    var string = mydevice.manufacturer;\r\n\r\n\r\n### Quick Example\r\n\r\n```js\r\nvar deviceManufacturer = mydevice.manufacturer;\r\n```\r\n\r\n## mydevice.isVirtual\r\n\r\nwhether the device is running on a simulator.\r\n\r\n```js\r\nvar isSim = mydevice.isVirtual;\r\n```\r\n\r\n## mydevice.serial\r\n\r\nGet the device hardware serial number ([SERIAL](http://developer.android.com/reference/android/os/Build.html#SERIAL)).\r\n\r\n```js\r\nvar string = mydevice.serial;\r\n```\r\n","readmeFilename":"readme.md"}