{"id":19156144,"url":"https://github.com/applogistdev/alsmsretriever-android","last_synced_at":"2025-10-17T08:02:48.161Z","repository":{"id":109654948,"uuid":"239742123","full_name":"applogistdev/ALSmsRetriever-android","owner":"applogistdev","description":"Retrieve SMS from SMS User Consent API or SMS Retriever API","archived":false,"fork":false,"pushed_at":"2021-04-30T05:52:44.000Z","size":147,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T20:16:46.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/applogistdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-02-11T11:08:16.000Z","updated_at":"2024-06-10T09:02:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"faed8623-4b45-4331-8ec7-9ebc21f1ecd3","html_url":"https://github.com/applogistdev/ALSmsRetriever-android","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applogistdev%2FALSmsRetriever-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applogistdev%2FALSmsRetriever-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applogistdev%2FALSmsRetriever-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applogistdev%2FALSmsRetriever-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/applogistdev","download_url":"https://codeload.github.com/applogistdev/ALSmsRetriever-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252834061,"owners_count":21811305,"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","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":[],"created_at":"2024-11-09T08:33:24.834Z","updated_at":"2025-10-17T08:02:43.143Z","avatar_url":"https://github.com/applogistdev.png","language":"Kotlin","readme":"\n# ALSmsRetriever\n\n## Important\n\nA message triggers the broadcast only if it meets these criteria:\n\n - The message contains a 4-10 character alphanumeric string with at least one number.\n \n - The message was sent by a phone number that's not in the user's contacts.\n \n - If you specified the sender's phone number, the message was sent by that number.\n \n Sample message :   **Your verification code is 1234**\n\n## Installation\n[![](https://jitpack.io/v/applogistdev/ALSmsRetriever-android.svg)](https://jitpack.io/#applogistdev/ALSmsRetriever-android)\n```gradle\nallprojects {\n    repositories {\n        ...\n        maven { url 'https://jitpack.io' }\n    }\n}\n\ndependencies {\n    implementation 'com.github.applogistdev:ALSmsRetriever-android:lastVersion'\n}\n```\n\n## Usage with SMS User Consent API (https://developers.google.com/identity/sms-retriever/user-consent/overview)\n\nRegister your listener\n\n```kotlin\n        OneTapSmsReceiver.instance?.start(this,this, object :\n            OneTapSmsListener {\n            override fun onSuccess(message: String) {\n                Log.d(\"onSuccess\", message)\n            }\n\n            override fun onFailure(errorCode: Int) {\n                Log.e(\"onFailure\", errorCode.toString())\n            }\n        })\n```\n\nAdd onActivityResult\n\n```kotlin\n    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {\n        OneTapSmsReceiver.instance?.handleOnActivityResult(requestCode,resultCode,data)\n        super.onActivityResult(requestCode, resultCode, data)\n    }\n```\n\n## Usage with SMS Retriever API (https://developers.google.com/identity/sms-retriever/overview)\n\nCreate your Debug or Release signature with [AppSignatureHelper](https://github.com/applogistdev/ALSmsRetriever-android/blob/master/app/src/main/java/com/applogist/alsmsretriever_sample/AppSignatureHelper.kt) (IMPORTANT: When you release at Google Play with Google App Signing this Release signature won't work.)\n\n```kotlin\nAppSignatureHelper(this).appSignatures.toString()\n```\n\nYou must send your message with this signature. Sample: \"Yumm! Pie à la Android mode! 123456 1Ouzi0b+Kxq\"\n\nRegister your listener\n\n```kotlin\n        SmsRetrieverReceiver.instance?.start(this,this, object : SmsRetrieverListener{\n            override fun onReceive(message: String) {\n                Log.d(\"message\", message)\n            }\n\n            override fun onFailure(errorCode: Int) {\n                Log.e(\"onFailure\", errorCode.toString())\n            }\n\n        })\n```\n\n## Get Google Play Release Hash\nhttps://stackoverflow.com/questions/51365778/how-to-generate-11-char-hash-key-for-sms-retriever-with-google-app-signing","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplogistdev%2Falsmsretriever-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapplogistdev%2Falsmsretriever-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplogistdev%2Falsmsretriever-android/lists"}