{"id":18051,"date":"2026-11-18T23:45:47","date_gmt":"2026-11-18T18:15:47","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/"},"modified":"2026-11-18T23:45:47","modified_gmt":"2026-11-18T18:15:47","slug":"otp-autofill-android-ios-sms-retriever","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/","title":{"rendered":"OTP autofill on Android, iPhone and websites: SMS Retriever, app hash and DLT"},"content":{"rendered":"<p>OTP autofill lets the phone read the code from the SMS so the user does not type it. On Android apps this works with Google&#8217;s SMS Retriever API and an 11-character app hash. On iPhones and websites it works with the right input field and message format. In India there is one extra rule: the SMS text must match your approved DLT template, so the app hash or the website line must be part of the template. This guide shows how to set it up with Fast2SMS.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Send OTPs that fill themselves<\/strong><p>Use Smart OTP with an autofill-ready DLT template for a faster login.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Which autofill method fits your app<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Where it works<\/th>\n<th>What the SMS needs<\/th>\n<th>User action<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>SMS Retriever API<\/td>\n<td>Your Android app<\/td>\n<td>The code and your app&#8217;s 11-character hash<\/td>\n<td>None<\/td>\n<\/tr>\n<tr>\n<td>SMS User Consent API<\/td>\n<td>Your Android app<\/td>\n<td>A 4 to 10 character code with at least one number. No hash.<\/td>\n<td>Taps Allow on a prompt<\/td>\n<\/tr>\n<tr>\n<td>iOS code suggestion<\/td>\n<td>iPhone apps and Safari<\/td>\n<td>A clear code in the SMS<\/td>\n<td>Taps the code shown above the keyboard<\/td>\n<\/tr>\n<tr>\n<td>WebOTP<\/td>\n<td>Websites in Chrome on Android<\/td>\n<td>A last line like <code>@www.yourbrand.com #482913<\/code><\/td>\n<td>Taps to allow, or none<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>The facts about Google and Apple features here are from their developer documentation at the time of writing.<\/p>\n<h2>The DLT rule you must plan for<\/h2>\n<p>Every OTP SMS in India must match an approved DLT content template, word for word. Only the variable parts can change. So anything autofill needs, like the app hash or the <code>@domain #code<\/code> line, has to be written into the template when you register it on your DLT portal. You cannot add it later from your code.<\/p>\n<p>The app hash is the same for every user of one app build, so put it in the template as fixed text. A hash can contain characters like <code>+<\/code> or <code>\/<\/code>, which an alphanumeric variable tag does not allow, so fixed text is the safe choice.<\/p>\n<h2>Android: SMS Retriever with Smart OTP<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>Get your app hash<\/h3>\n<p>The hash comes from your app&#8217;s package name and the certificate that signs the app users install. If you use Play App Signing, use the app signing certificate from the Play Console, not your upload key. A debug build signed with another key has a different hash. One way to compute it on Linux:<\/p>\n<pre><code class=\"language-bash\">keytool -exportcert -alias YOUR_ALIAS -keystore YOUR_KEYSTORE.jks \\\n  | xxd -p | tr -d \"[:space:]\" \\\n  | (printf \"com.yourbrand.app \" &amp;&amp; cat) \\\n  | sha256sum | tr -d \"[:space:]-\" | xxd -r -p | base64 | cut -c1-11<\/code><\/pre>\n<p>Run <code>keytool<\/code> alone first to check it prints the certificate. On macOS use <code>shasum -a 256<\/code> in place of <code>sha256sum<\/code>. Google&#8217;s sample <code>AppSignatureHelper<\/code> class can also print the hash. Never compute the hash inside the app at run time and send it to your server.<\/p>\n<\/li>\n<li>\n<h3>Register a DLT template that ends with the hash<\/h3>\n<p>Write a short OTP template with the hash as fixed text at the end, for example:<\/p>\n<pre><code class=\"language-text\">{#numeric#} is your OTP to log in to YourBrand. Do not share it with anyone. -YourBrand AbC1dEf2GhI<\/code><\/pre>\n<p>Keep the whole SMS short and in English. Google asks for a message of no more than 140 bytes. Get the template approved on your DLT portal, then add it in Fast2SMS under <strong>DLT Manager<\/strong>, <strong>Content Template<\/strong>, <strong>Add Content Template<\/strong>, with the exact approved text.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"ADD CONTENT TEMPLATE window in DLT Manager with entity, sender ID checkboxes, Content Template ID, Template Type, approved message text box and screenshot upload\"><figcaption>Paste the approved text exactly, including the hash.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Create the Smart OTP template<\/h3>\n<p>In Smart OTP open <strong>OTP Template List<\/strong>, click <strong>Add OTP Template<\/strong>, choose your entity and sender, pick the new template in <strong>Select Template<\/strong> and select the OTP variable. Save and copy the OTP ID.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/smart-otp-add-sms-template-menu-hd-1-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"Add OTP Template window with entity and sender chosen and the Select Template list of approved DLT templates\"><figcaption>Pick the autofill template for your Android app.<\/figcaption><\/figure>\n<\/li>\n<li>\n<h3>Start the retriever, then send the OTP<\/h3>\n<p>In the app, call <code>SmsRetriever.getClient(context).startSmsRetriever()<\/code> and register a broadcast receiver for the SMS retrieved action. Then ask your server to call the Fast2SMS Send OTP API. The retriever waits up to 5 minutes for one matching SMS.<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/www.fast2sms.com\/dev\/otp\/send\" \\\n  -H \"authorization: YOUR_API_KEY\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"mobile\":\"9999999999\",\"otp_id\":\"YOUR_OTP_ID\",\"otp_expiry\":5}'<\/code><\/pre>\n<\/li>\n<li>\n<h3>Read the code and verify on your server<\/h3>\n<p>When the SMS arrives, your receiver gets the full text. Take the digits out with a regular expression and send them to your server. Your server calls the Verify OTP API with the mobile and the code. Never decide &#8220;verified&#8221; inside the app.<\/p>\n<\/li>\n<\/ol>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Build a one-tap login<\/strong><p>Smart OTP sends the OTP, checks it and falls back to WhatsApp if the SMS fails.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Android: SMS User Consent (no hash)<\/h2>\n<p>If you cannot change your DLT template, use the SMS User Consent API. It needs no hash. Your app starts listening before the SMS arrives, and Android shows the message and asks the user to allow your app to read it. The message must contain a 4 to 10 character code with at least one number, so a normal numeric OTP works. It listens for 5 minutes. You can pass a sender number to filter messages. Fast2SMS SMS arrive from your sender ID header, not a phone number, so start it without a sender filter.<\/p>\n<h2>iPhone and Safari: one-time-code<\/h2>\n<p>iOS can suggest the code from a new SMS above the keyboard. Help it by marking the input field:<\/p>\n<ul>\n<li>In a web page: <code>&lt;input type=\"text\" inputmode=\"numeric\" autocomplete=\"one-time-code\"&gt;<\/code><\/li>\n<li>In an iOS app: set the text field&#8217;s content type to one-time code.<\/li>\n<\/ul>\n<p>Keep the code easy to spot in the SMS, for example at the start: &#8220;482913 is your OTP to log in to YourBrand.&#8221;<\/p>\n<h2>Websites on Android: WebOTP<\/h2>\n<p>Chrome on Android can read the code into your web page with the WebOTP API. The SMS must end with a line that has your website&#8217;s host after <code>@<\/code> and the code after <code>#<\/code>, with one space between them. The template needs two variables for the code, for example:<\/p>\n<pre><code class=\"language-text\">{#numeric#} is your OTP to log in to YourBrand. Do not share it.\n@www.yourbrand.com #{#numeric#}<\/code><\/pre>\n<p>With Smart OTP, set the first variable as the OTP variable and send <code>\"variables_values\":\"{otp}\"<\/code>. Fast2SMS puts the same OTP into the second variable too. On the page, ask for the code like this:<\/p>\n<pre><code class=\"language-javascript\">if (\"OTPCredential\" in window) {\n  const ac = new AbortController();\n  navigator.credentials\n    .get({ otp: { transport: [\"sms\"] }, signal: ac.signal })\n    .then((otp) =&gt; { document.querySelector(\"#otp\").value = otp.code; })\n    .catch(() =&gt; {});\n}<\/code><\/pre>\n<p>The same last-line format also helps Safari suggest the code. Keep <code>autocomplete=\"one-time-code\"<\/code> on the field for other browsers.<\/p>\n<div class=\"f2s-note\">Each of these templates is a separate DLT template. Many businesses keep one plain OTP template for websites and one with the app hash for their Android app, each linked to its own Smart OTP ID.<\/div>\n<h2>Common problems and fixes<\/h2>\n<h3>The Android app does not pick up the SMS<\/h3>\n<p>Check that the hash in the SMS matches the build on the phone. A debug build, an upload key or a new signing key all give a different hash. Also check the SMS is short enough and that the app started the retriever before the SMS arrived, less than 5 minutes earlier.<\/p>\n<h3>The SMS fails or never arrives after I added the hash<\/h3>\n<p>The text sent must match the approved DLT template exactly. If you added the hash in your code instead of in the template, operators can reject the SMS. Register a new template with the hash and use its OTP ID.<\/p>\n<h3>The fallback came on WhatsApp, so autofill did not work<\/h3>\n<p>SMS Retriever reads SMS only. If the SMS failed and the Smart OTP fallback sent the code on WhatsApp, the user copies it from WhatsApp. WhatsApp Authentication templates have their own one-tap and zero-tap options for Android apps.<\/p>\n<h3>iOS does not suggest the code<\/h3>\n<p>Make sure the input has <code>autocomplete=\"one-time-code\"<\/code> (web) or the one-time code content type (app), and that the code is clearly visible in the message.<\/p>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>Do I need a new DLT template for OTP autofill on Android?<\/h3>\n<p>For SMS Retriever, yes, because the 11-character app hash must be in the SMS and the SMS must match the template. The SMS User Consent API works with your existing OTP template.<\/p>\n<h3>Can I pass the app hash as a variable?<\/h3>\n<p>It is safer as fixed text. The hash does not change for a given app build, and it can contain characters that an alphanumeric variable does not allow.<\/p>\n<h3>Does OTP autofill work with Smart OTP?<\/h3>\n<p>Yes. Smart OTP sends the SMS from your DLT template, so if the template has the hash or the WebOTP line, autofill works as normal.<\/p>\n<h3>What is the 11-character hash in OTP SMS?<\/h3>\n<p>It is a short code made from your Android app&#8217;s package name and signing certificate. Android uses it to pass the SMS only to your app.<\/p>\n<h3>Does WebOTP work on iPhone?<\/h3>\n<p>Safari does not support the WebOTP JavaScript API, but it understands the same message format and can suggest the code on the keyboard.<\/p>\n<h3>Is autofill safe?<\/h3>\n<p>Yes, when the code is still checked on your server with the Verify OTP API. Autofill only saves typing.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Start with Smart OTP<\/strong><p>Send autofill-ready OTPs on SMS with WhatsApp fallback and built-in verification.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP in Fast2SMS: set up OTP on SMS and WhatsApp with fallback<\/a><\/li>\n<li><a href=\"\/help\/dlt-manager-entity-sender-template-guide\/\">DLT Manager: add your entity, sender ID and templates<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/help\/dlt-variable-tagging\/\">DLT variable tagging explained<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/help\/how-to-get-dlt-template-id-for-otp-and-transactional-sms\/\">How to get DLT Template ID for OTP and transactional SMS<\/a><\/li>\n<li><a href=\"https:\/\/www.fast2sms.com\/otp-sms\">Fast2SMS OTP SMS<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OTP autofill lets the phone read the code from the SMS so the user does not type it. On Android apps this works with Google&#8217;s SMS Retriever API and an 11-character app hash. On iPhones and websites it works with the right input field and message format. In India there is one extra rule: the [&hellip;]<\/p>\n","protected":false},"featured_media":18047,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,30,5],"tags":[],"class_list":["post-18051","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-dlt","category-otp"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OTP Autofill: SMS Retriever, App Hash and DLT | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Set up OTP autofill in India: Android SMS Retriever with an 11-character app hash in your DLT template, SMS User Consent, iOS one-time-code and WebOTP.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OTP Autofill: SMS Retriever, App Hash and DLT | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Set up OTP autofill in India: Android SMS Retriever with an 11-character app hash in your DLT template, SMS User Consent, iOS one-time-code and WebOTP.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T18:15:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"OTP autofill on Android, iPhone and websites: SMS Retriever, app hash and DLT\",\"datePublished\":\"2026-11-18T18:15:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/\"},\"wordCount\":1443,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/sms-dlt-add-template-modal-hd-9-scaled.webp\",\"articleSection\":[\"API\",\"DLT\",\"OTP\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/\",\"name\":\"OTP Autofill: SMS Retriever, App Hash and DLT | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/sms-dlt-add-template-modal-hd-9-scaled.webp\",\"datePublished\":\"2026-11-18T18:15:47+00:00\",\"description\":\"Set up OTP autofill in India: Android SMS Retriever with an 11-character app hash in your DLT template, SMS User Consent, iOS one-time-code and WebOTP.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/sms-dlt-add-template-modal-hd-9-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/sms-dlt-add-template-modal-hd-9-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"ADD CONTENT TEMPLATE window in DLT Manager with entity, sender ID checkboxes, Content Template ID, Template Type, approved message text box and screenshot upload\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/otp-autofill-android-ios-sms-retriever\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/api\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OTP autofill on Android, iPhone and websites: SMS Retriever, app hash and DLT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\"},\"email\":\"support@fast2sms.com\",\"telephone\":\"+91-6262778822\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Fast2SMS\",\"https:\\\/\\\/www.instagram.com\\\/fast2sms\",\"https:\\\/\\\/x.com\\\/fast2sms\",\"https:\\\/\\\/www.youtube.com\\\/Fast2SMSofficial\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/fast2sms\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OTP Autofill: SMS Retriever, App Hash and DLT | Fast2SMS","description":"Set up OTP autofill in India: Android SMS Retriever with an 11-character app hash in your DLT template, SMS User Consent, iOS one-time-code and WebOTP.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/","og_locale":"en_US","og_type":"article","og_title":"OTP Autofill: SMS Retriever, App Hash and DLT | Fast2SMS","og_description":"Set up OTP autofill in India: Android SMS Retriever with an 11-character app hash in your DLT template, SMS User Consent, iOS one-time-code and WebOTP.","og_url":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T18:15:47+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"OTP autofill on Android, iPhone and websites: SMS Retriever, app hash and DLT","datePublished":"2026-11-18T18:15:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/"},"wordCount":1443,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp","articleSection":["API","DLT","OTP"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/","url":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/","name":"OTP Autofill: SMS Retriever, App Hash and DLT | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp","datePublished":"2026-11-18T18:15:47+00:00","description":"Set up OTP autofill in India: Android SMS Retriever with an 11-character app hash in your DLT template, SMS User Consent, iOS one-time-code and WebOTP.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/sms-dlt-add-template-modal-hd-9-scaled.webp","width":2560,"height":1600,"caption":"ADD CONTENT TEMPLATE window in DLT Manager with entity, sender ID checkboxes, Content Template ID, Template Type, approved message text box and screenshot upload"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/otp-autofill-android-ios-sms-retriever\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/www.fast2sms.com\/help\/api\/"},{"@type":"ListItem","position":3,"name":"OTP autofill on Android, iPhone and websites: SMS Retriever, app hash and DLT"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/","logo":{"@type":"ImageObject","@id":"https:\/\/www.fast2sms.com\/#logo","url":"https:\/\/www.fast2sms.com\/Fast2SMS.png","contentUrl":"https:\/\/www.fast2sms.com\/Fast2SMS.png","caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/#logo"},"email":"support@fast2sms.com","telephone":"+91-6262778822","sameAs":["https:\/\/www.facebook.com\/Fast2SMS","https:\/\/www.instagram.com\/fast2sms","https:\/\/x.com\/fast2sms","https:\/\/www.youtube.com\/Fast2SMSofficial","https:\/\/www.linkedin.com\/company\/fast2sms"]}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18051","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=18051"}],"version-history":[{"count":0,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/18051\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/18047"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=18051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=18051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=18051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}