{"_id":"@edusperoni/nativescript-sms-inbox","_rev":"3-657dad4d254dcb45974dcf1d8af0b4ba","name":"@edusperoni/nativescript-sms-inbox","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@edusperoni/nativescript-sms-inbox","version":"1.0.1","description":"Add a plugin description","main":"index","typings":"index.d.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/NativeScript/plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","iOS","Android"],"author":{"name":"NativeScript","email":"oss@nativescript.org"},"bugs":{"url":"https://github.com/NativeScript/plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/NativeScript/plugins","bootstrapper":"@nativescript/plugin-seed","_id":"@edusperoni/nativescript-sms-inbox@1.0.1","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-7R65cTJvOGkFuWjeFqour8hwCg8eQHS3usKwj/CmKYfOSqd7zlOVIrjwjLTs+YvNEIR/Oa+06tjDm07zLo9YXA==","shasum":"3723e867a8088d8d5bc2fe5a5b35d14dde68f1b2","tarball":"https://registry.npmjs.org/@edusperoni/nativescript-sms-inbox/-/nativescript-sms-inbox-1.0.1.tgz","fileCount":19,"unpackedSize":36682,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEchjutymlj4jAsJg3rapRj2LBjlks3a2b4q25Iq5I8wIhAInwhFDvysMIRKZ4dkVJ2yEdk3mOfkTufJgqMIGkiQOH"}]},"_npmUser":{"name":"edusperoni","email":"edusperoni@gmail.com"},"directories":{},"maintainers":[{"name":"edusperoni","email":"edusperoni@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-sms-inbox_1.0.1_1632765722649_0.9310082551120691"},"_hasShrinkwrap":false},"1.0.2":{"name":"@edusperoni/nativescript-sms-inbox","version":"1.0.2","description":"A NativeScript plugin to read text messages on android phone inbox using undocumented android api.","main":"index","typings":"index.d.ts","nativescript":{"platforms":{"ios":"6.0.0","android":"6.0.0"}},"repository":{"type":"git","url":"git+https://github.com/NativeScript/plugins.git"},"keywords":["NativeScript","JavaScript","TypeScript","Android"],"author":{"name":"Eduardo Speroni","email":"edusperoni@gmail.com"},"bugs":{"url":"https://github.com/NativeScript/plugins/issues"},"license":"Apache-2.0","homepage":"https://github.com/NativeScript/plugins","bootstrapper":"@nativescript/plugin-seed","_id":"@edusperoni/nativescript-sms-inbox@1.0.2","_nodeVersion":"14.17.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-AHmwKnmzIlZ3AXvGZiHPGt4K8F7OMvPkFI1EOsMbBG8JsaVum4pfn9DoN6lKGHdMfMpyQT+73qlupjwiGByo2w==","shasum":"f640c41062fd0b7d225e2cbc7a9ed3b5af93e531","tarball":"https://registry.npmjs.org/@edusperoni/nativescript-sms-inbox/-/nativescript-sms-inbox-1.0.2.tgz","fileCount":19,"unpackedSize":36748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0Y20CRA9TVsSAnZWagAAVIMP/23wA+4tnGp2P4dX9F5Q\nfSM/iOWp+dRpFzxet1HpD+bq1RjrRJ8oCeGTxnWXlXCK0p/ugvr2Igel+JQ6\nl2cm3o3/O9MQBkykVdhdyeLsk5AeEsGwQcafo+XewvOxZ+8gJbsUl0FL2YjL\ne+X3znyy87L5QKRmMS/+yXIRjANqS44x7qyZcP7GdpFt3igHNmrLLV/DXLYX\n9L2/BV2d1AZmYNLI40/5+i1BR4WM1CAedgVKnvTK28LrQ4xr3a/V4xUz/lKw\nl1c0EnzD9t8PGNOhhks83qAJaSLtyQ6S6pxmeDLJt/4kZEc5GlIwjwEb+W8K\nMpMlOQRHCg2q0Orz/zCfvRx4XaUL13hfp5VfhkBMEu4BaYpOOiL4/HfMLV4x\nr5fAxDIvbfxAk+TZ/K6XNECBC3Dht2vLOna5uEkrIocExHJPw77ZJZaYRlTj\nCFUBcwch/RkBL1ublEubrWV4wbY1Yx96iDqpyUf9R8GDEiXiHIIogw1RINPc\n2jQogenXraKTcbF1xXn6nzIz6UcjoANghoGzc6mGpLVLRrlB2BMFLPe4hz/m\n+kTKpd4pL+z/+5RBjvcmlwv93ad2mPV3ysV7CIAmkafEerZ56fpKjCuRHvle\nF8krc7XBv6V5qtMRYnLsJ+MgeWu5tEmCLh8TrBkvRwsLPL1Vuk/NtpowBn0V\nJKkJ\r\n=LLw3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+Z/Xf+v/7y2SDSiS9LT6JRB6g4IthAzyMxqTEDOcYfgIgTy4lwOEJKVbchCc4eZLoasNh6ljjxGY8oh8kUF2cx8U="}]},"_npmUser":{"name":"edusperoni","email":"edusperoni@gmail.com"},"directories":{},"maintainers":[{"name":"edusperoni","email":"edusperoni@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-sms-inbox_1.0.2_1632765853952_0.9734617907201846"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-27T18:02:02.592Z","1.0.1":"2021-09-27T18:02:02.871Z","modified":"2022-04-05T06:44:41.884Z","1.0.2":"2021-09-27T18:04:14.111Z"},"maintainers":[{"name":"edusperoni","email":"edusperoni@gmail.com"}],"description":"A NativeScript plugin to read text messages on android phone inbox using undocumented android api.","homepage":"https://github.com/NativeScript/plugins","keywords":["NativeScript","JavaScript","TypeScript","Android"],"repository":{"type":"git","url":"git+https://github.com/NativeScript/plugins.git"},"author":{"name":"Eduardo Speroni","email":"edusperoni@gmail.com"},"bugs":{"url":"https://github.com/NativeScript/plugins/issues"},"license":"Apache-2.0","readme":"# @edusperoni/nativescript-sms-inbox\n\n```javascript\nns plugin add @edusperoni/nativescript-sms-inbox\n```\n# NativeScript Sms Inbox\n\nA NativeScript plugin to read text messages on android phone inbox using undocumented android api.\n\n## Installation\n\nInstall the plugin using the NativeScript CLI tooling\n\n```\ntns plugin add nativescript-sms-inbox\n```\n\n### Android\n\nTo read sms inbox in the phone without user interaction on Android your app must request permission. The following must be added to your app's `AndroidManifest.xml`\n\n```xml\n<uses-permission android:name=\"android.permission.READ_SMS\" />\n```\n\n## Usage\n\nTo use the phone module you must first `require()` it from your project's `node_modules` directory:\n\n```js\nvar inbox = require( \"nativescript-sms-inbox\" );\n```\n\nAfter you have a reference to the module you can then call the available methods.\n\n### Methods\n#### getInboxes: fetch all text message in the inbox\n##### Parameters\n* options: A map of parameters e.g. max (for max results), etc..\n\nFor example, the code below gets the last 10 smses from the device inbox:\n\n```js\n// my-page.js\nvar inbox = require( \"nativescript-sms-inbox\" );\ninbox.getInboxes({ max: 10 }).then(function(res) {\n    console.log(JSON.stringify(res));\n}, function(err) {\n    console.log(\"Error: \" + err);\n});\n```\n#### getInboxesFromNumber: Get all text messages in the sms inbox sent by provided fromNumber\n##### Parameters\n* fromNumber - The number on which to filter SMS inbox messages.\n* options - A map of parameters e.g. max (for max results), etc.\n\nFor example, the code below gets the last 10 smses from the device inbox sent by the provided fromNumber:\n\n```js\n// my-page.js\nvar inbox = require( \"nativescript-sms-inbox\" );\ninbox.getInboxesFromNumber(\"0712345678\", { max: 10 }).then(function(res) {\n    console.log(JSON.stringify(res));\n}, function(err) {\n    console.log(\"Error: \" + err);\n});\n```\n\n### TypeScript example\n\n```TypeScript\n\nimport * as TNSInbox from 'nativescript-sms-inbox';\n\n// Get the last 10 inbox messages\npublic getInboxMessages() {    \n    TNSInbox.getInboxes({ max: 10 }).then((res) => {\n        console.log(JSON.stringify(res));\n    }, (err) => {\n        console.log('Error: ' + err);\n    });\n}\n\n// Get the last 10 inbox messages sent by the provided fromNumber\npublic getInboxMessagesFromNumber(fromNumber: string) { //fromNumber = \"0712345678\"\n    TNSInbox.getInboxesFromNumber(fromNumber, { max: 10 }).then((res) => {\n        console.log(JSON.stringify(res));\n    }, (err) => {\n        console.log('Error: ' + err);\n    });\n}\n\n```","readmeFilename":"README.md"}