{"id":17992617,"url":"https://github.com/rajeevs1992/cordova-sms-reader","last_synced_at":"2025-10-15T04:55:51.439Z","repository":{"id":57209273,"uuid":"164198944","full_name":"rajeevs1992/cordova-sms-reader","owner":"rajeevs1992","description":"A simple to use, minimal frills SMS reader for cordova applications.","archived":false,"fork":false,"pushed_at":"2020-04-08T00:17:15.000Z","size":8,"stargazers_count":7,"open_issues_count":3,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-19T22:46:08.008Z","etag":null,"topics":["cordova-plugin","ionic","sms"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rajeevs1992.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-05T09:05:22.000Z","updated_at":"2022-07-08T14:12:16.000Z","dependencies_parsed_at":"2022-09-18T01:00:17.718Z","dependency_job_id":null,"html_url":"https://github.com/rajeevs1992/cordova-sms-reader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rajeevs1992/cordova-sms-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeevs1992%2Fcordova-sms-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeevs1992%2Fcordova-sms-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeevs1992%2Fcordova-sms-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeevs1992%2Fcordova-sms-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rajeevs1992","download_url":"https://codeload.github.com/rajeevs1992/cordova-sms-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rajeevs1992%2Fcordova-sms-reader/sbom","scorecard":{"id":759958,"data":{"date":"2025-08-11","repo":{"name":"github.com/rajeevs1992/cordova-sms-reader","commit":"3a56cf670ff30b86934a4e96545179018e53c239"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T23:05:20.572Z","repository_id":57209273,"created_at":"2025-08-22T23:05:20.572Z","updated_at":"2025-08-22T23:05:20.572Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279050854,"owners_count":26093594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cordova-plugin","ionic","sms"],"created_at":"2024-10-29T20:08:43.954Z","updated_at":"2025-10-15T04:55:51.423Z","avatar_url":"https://github.com/rajeevs1992.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMS reader for Cordova applications\n\nA simple to use, minimal frills SMS reader for cordova applications.\n\nTo keep things simple, only inbox is searched.\n\n## Installing\n\nFrom cordova plugin registry\n\n    cordova plugin add cordova-sms-reader\n\nFrom plugin repository\n\n    cordova plugin add https://github.com/rajeevs1992/cordova-sms-reader.git\n\n## Supported platforms\n\n- Android\n\n## API Reference\n\n- [smsreader](#smsreader)\n  - [.getAllSMS(since)](#getallsms)\n  - [.filterSenders(senderids, since)](#filtersenders)\n  - [.filterBody(searchtexts, since)](#filterbody)\n  - [.filterBodyOrSenders(searchtexts, senderids, since)](#filterBodyOrSenders)\n  - [.SMS](#sms) : `Object`\n  \n\n## smsreader\n\n\u003ca id=\"smsreader\"\u003e\u003c/a\u003e\n\n### getAllSMS(since)\n\n\u003ca id=\"getallsms\"\u003e\u003c/a\u003e\nFetch all SMS since a specified date. The `since` parameter is optional.\n\n```js\nsmsreader.getAllSMS()\n    .then((sms)=\u003e{\n        // Fetches all SMS.\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n\nsmsreader.getAllSMS('2019-01-01')\n    .then((sms)=\u003e{\n        // Fetches all SMS received after 2019-01-01\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n\nsmsreader.getAllSMS(new Date(2019, 0, 1))\n    .then((sms)=\u003e{\n        // Fetches all SMS received after 2019-01-01\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n```\n\n### filterSenders(senderids, since)\n\n\u003ca id=\"filtersenders\"\u003e\u003c/a\u003e\nFetch all SMS since date, from a list of sender addresses. The `since` parameter is optional.\n\n\u003e The senderid is case sensitive.\n\n```js\nsmsreader.filterSenders(['123456','01402368'])\n    .then((sms)=\u003e{\n        // Fetches all SMS from 123456 OR 01402368.\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n\nsmsreader.filterSenders(['123456','01402368'], '2019-01-01')\n    .then((sms)=\u003e{\n        // Fetches all SMS recieved from 123456 OR 01402368 AND receieved after 2019-01-01.\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n```\n\n### filterBody(searchtexts, since)\n\n\u003ca id=\"filterbody\"\u003e\u003c/a\u003e\nFetch all SMS since date, filtered by search texts. SMS is returned if **ANY** of the search string is present in the body. The `since` parameter is optional.\n\n\u003e The search text is case insensitive.\n\n```js\nsmsreader.filterBody(['hello','alice'])\n    .then((sms)=\u003e{\n        // Fetches all SMS, with body containing words 'hello' OR 'alice'.\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n\nsmsreader.filterBody(['hello','alice'], '2019-01-01')\n    .then((sms)=\u003e{\n        // Fetches all SMS, with body containing words 'hello' OR 'alice' AND receieved after 2019-01-01.\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n```\n\n\n### filterBodyOrSenders(searchtexts, senderids, since)\n\n\u003ca id=\"filterBodyOrSenders\"\u003e\u003c/a\u003e\nFetch all SMS since date, filtered by search texts or sender ids. SMS is returned if **ANY** of the search string is present in the body **OR** is from any of the senderids. The `since` parameter is optional.\n\n\u003e The search text is case insensitive.\n\n```js\nsmsreader.filterBodyOrSenders(['hello','alice'], ['12456','147589'])\n    .then((sms)=\u003e{\n        // Fetches all SMS, with body containing words ('hello' OR 'alice') OR (address in ['12456','147589'])\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n\nsmsreader.filterBodyOrSenders(['hello','alice'], ['12456','147589'], '2019-01-01')\n    .then((sms)=\u003e{\n        // Fetches all SMS, with body containing words ('hello' OR 'alice') OR (address in ['12456','147589']) AND receieved after 2019-01-01.\n    },\n    (err)=\u003e{\n        console.error(err);\n    });\n```\n\n### SMS\n\n\u003ca id=\"sms\"\u003e\u003c/a\u003e\nThe API functions return a `Promise` resolving to an array of `SMS` objects, which have the following properties.\n\n- `id` : `number`, A unique id for the SMS, assigned by the android messenger.\n- `address` : `string`, The sender address.\n- `body` : `string`, The SMS body.\n- `date` : `number`, A timestamp of the received date.\n- `read` : `boolean`, A flag denoting if SMS is read or not.\n\n#### Sample response\n\n```json\n[\n    {\n        \"id\" : 3,\n        \"address\" : \"123456\",\n        \"body\" : \"Hello world\",\n        \"date\" : 1546681106290,\n        \"read\" : true\n    },\n    {\n        \"id\" : 4,\n        \"address\" : \"87956\",\n        \"body\" : \"Hello SMS\",\n        \"date\" : 1546681106292,\n        \"read\" : false\n    }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajeevs1992%2Fcordova-sms-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frajeevs1992%2Fcordova-sms-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frajeevs1992%2Fcordova-sms-reader/lists"}