<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kailas Rathod on Medium]]></title>
        <description><![CDATA[Stories by Kailas Rathod on Medium]]></description>
        <link>https://medium.com/@kailas-rathod?source=rss-c9f536b3a9e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Gcc3irgE4kTqRd-b</url>
            <title>Stories by Kailas Rathod on Medium</title>
            <link>https://medium.com/@kailas-rathod?source=rss-c9f536b3a9e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:09:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kailas-rathod/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Stop Asking for SMS Permissions: The Ultimate Guide to React Native OTP Auto-Verification (2026)]]></title>
            <link>https://medium.com/@kailas-rathod/stop-asking-for-sms-permissions-the-ultimate-guide-to-react-native-otp-auto-verification-2026-d4f806180f0a?source=rss-c9f536b3a9e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4f806180f0a</guid>
            <category><![CDATA[otp-verification]]></category>
            <category><![CDATA[post]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[otp-sms-service]]></category>
            <category><![CDATA[otp-sms]]></category>
            <dc:creator><![CDATA[Kailas Rathod]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 07:28:42 GMT</pubDate>
            <atom:updated>2026-04-10T07:28:42.269Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Friction in Mobile Onboarding</strong></p><p>Every developer knows that the “Time to Value” is the most critical metric for a mobile app. The moment a user has to leave your app to check an SMS, memorize a 6-digit code, and manually type it back in, you lose approximately <strong>20–30% of your conversion rate</strong>.</p><p>Historically, we solved this using READ_SMS permissions. However, in 2026, Google Play Store policies have made this nearly impossible for standard apps. Users are also rightfully wary of granting any app access to their private messages.</p><p>As the creator of <a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">react-native-otp-auto-verify</a>, I built this library to provide a <strong>zero-permission</strong> solution that is fully compliant with modern privacy standards and optimized for the <strong>React Native New Architecture</strong>.<br><a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a></p><p><strong>1. Understanding the Google SMS Retriever API</strong></p><p>The magic behind this library is the <strong>Google SMS Retriever API</strong>. Unlike older methods that intercept every incoming message, the Retriever API only “wakes up” when a specific message—formatted specifically for your app—arrives.</p><p><strong>Why it’s SEO-Standard for 2026:</strong></p><ul><li><strong>Compliance:</strong> No need to fill out the Google Play “Sensitive Permission” declaration.</li><li><strong>Privacy:</strong> Your app never “sees” the inbox; it only receives the specific string intended for it.</li><li><strong>Security:</strong> By using a unique <strong>11-character App Hash</strong>, you ensure that no other app on the device can intercept your OTP.</li></ul><p><strong>2. Setting Up react-native-otp-auto-verify</strong></p><p>The library was designed to be easily integrated. Whether you are using the traditional Bridge or the modern <strong>TurboModules</strong> (New Architecture), the integration flow remains identical.</p><p><strong>Step 1: Install the Package</strong></p><p>First, add the library to your React Native project:</p><p>Bash</p><p>yarn add react-native-otp-auto-verify</p><p># or</p><p>npm install react-native-otp-auto-verify</p><p><strong>Step 2: Retrieve Your App Hash</strong></p><p>Google requires a specific hash at the end of your SMS to identify which app should receive the code. You can use the built-in utility to find yours:</p><pre>import { getHash } from &#39;react-native-otp-auto-verify&#39;;<br>// Call this during development to get your hash<br>const fetchHash = async () =&gt; {<br>try {<br>const hashes = await getHash();<br>console.log(&quot;Your unique App Hash is:&quot;, hashes[0]);<br>// Send this hash to your backend developer<br>} catch (error) {<br>console.error(&quot;Failed to get hash&quot;, error);<br>}<br>};</pre><p><strong>3. The Modern Implementation: useOtpVerification Hook</strong></p><p>In modern React Native development, we avoid class components and complex listeners. I’ve implemented a custom hook that manages the entire lifecycle of the SMS listener, from mounting to cleanup.</p><p><strong>Code Example:</strong></p><pre>import React, { useEffect, useState } from &#39;react&#39;;<br>import { View, TextInput, Text, Platform, StyleSheet } from &#39;react-native&#39;;<br>import { useOtpVerification } from &#39;react-native-otp-auto-verify&#39;;<br>const OtpVerificationScreen = () =&gt; {<br>const [otpValue, setOtpValue] = useState(&#39;&#39;);<br>// Initialize the hook with specific requirements<br>const { otp, startListening, stopListening, timeoutError } = useOtpVerification({<br>numberOfDigits: 6<br>});<br>useEffect(() =&gt; {<br>if (Platform.OS === &#39;android&#39;) {<br>startListening();<br>}<br>return () =&gt; stopListening(); // Auto-cleanup prevents memory leaks<br>}, [startListening, stopListening]);<br>// Handle auto-fill when OTP is detected<br>useEffect(() =&gt; {<br>if (otp) {<br>setOtpValue(otp);<br>// Optional: Auto-submit to your verification API<br>}<br>}, [otp]);<br>return (<br>&lt;View style={styles.container}&gt;<br>&lt;Text&gt;Enter the 6-digit code sent to your phone&lt;/Text&gt;<br>&lt;TextInput<br>value={otpValue}<br>onChangeText={setOtpValue}<br>keyboardType=&quot;number-pad&quot;<br>maxLength={6}<br>textContentType=&quot;oneTimeCode&quot; // Enables iOS keyboard suggestion<br>autoComplete=&quot;sms-otp&quot;<br>style={styles.input}<br>/&gt;<br>{timeoutError &amp;&amp; &lt;Text style={styles.error}&gt;SMS timed out. Request a new one.&lt;/Text&gt;}<br>&lt;/View&gt;<br>);<br>};</pre><p><strong>4. Backend Configuration (The Crucial Step)</strong></p><p>For <a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">react-native-otp-auto-verify</a> to function, your SMS must be formatted exactly as Google expects. If the format is wrong, the listener will never trigger.</p><p><strong>SMS Formatting Rules:</strong></p><ol><li><strong>Length:</strong> Total message must be 140 bytes or less.</li><li><strong>The Code:</strong> A numeric code of 4–8 digits.</li><li><strong>The Termination:</strong> The message <strong>must end</strong> with your 11-character App Hash.</li></ol><p><strong>Example SMS Template:</strong></p><p>Your verification code is 123456.</p><p>uW87Uq6teXc</p><p><strong>5. Built for the New Architecture (TurboModules)</strong></p><p>The React Native ecosystem is moving away from the “Bridge” toward a synchronous, type-safe architecture. My library is one of the few OTP solutions built from the ground up to support <strong>TurboModules</strong>.</p><p><strong>Why this matters for SEO and UX:</strong></p><ul><li><strong>Performance:</strong> Faster startup times for the native listener.</li><li><strong>Type Safety:</strong> Better developer experience when using TypeScript.</li><li><strong>Future Proof:</strong> You won’t have to replace this library when React Native 0.7x+ becomes the standard.</li></ul><p><strong>6. What about iOS?</strong></p><p>A common SEO question is: <em>“Does this work for iOS?”</em></p><p>Under Apple’s privacy guidelines, no third-party app can read SMS messages automatically. However, this library optimizes the iOS experience using <strong>Security Code AutoFill</strong>. By including textContentType=”oneTimeCode” in your input, iOS will suggest the code above the keyboard, allowing the user to “auto-fill” with a single tap.</p><p><strong>7. Troubleshooting Common Pitfalls</strong></p><ul><li><strong>Multiple Listeners:</strong> Ensure you are calling stopListening() when the user leaves the screen.</li><li><strong>Debug vs. Release Hashes:</strong> Your Google App Hash will change depending on your signing certificate. Always verify your Production hash before deploying.</li><li><strong>Play Services:</strong> This API requires Google Play Services to be installed on the device.</li></ul><p><strong>8. Conclusion: Seamless UX is No Longer Optional</strong></p><p>In a competitive market, a clunky login process is the fastest way to lose a user. By implementing <a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">react-native-otp-auto-verify</a>, you provide a world-class, frictionless experience while respecting user privacy.</p><p>If you found this guide helpful, consider starring the project on <a href="https://github.com/kailas-rathod/react-native-otp-auto-verify"><strong>GitHub</strong></a> or following for more React Native deep-dives!</p><p><a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a><br><a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">https://github.com/kailas-rathod/react-native-otp-auto-verify</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4f806180f0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Android App Size Still Matters in 2026]]></title>
            <link>https://medium.com/@kailas-rathod/why-android-app-size-still-matters-in-2026-e63af377b794?source=rss-c9f536b3a9e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/e63af377b794</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[apple]]></category>
            <dc:creator><![CDATA[Kailas Rathod]]></dc:creator>
            <pubDate>Sat, 14 Mar 2026 05:39:27 GMT</pubDate>
            <atom:updated>2026-03-14T06:01:52.247Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*-fITA98JWbYljs7A_7W3DA@2x.jpeg" /></figure><p>Many Android applications today exceed 40 – 50MB, and in many development teams this is considered normal.</p><p>However, application size can have a direct impact on install rates, user experience, and overall product performance.</p><p>Insights shared by Google show that even small increases in application size can influence user behavior. Larger applications often see lower install rates, particularly in regions where internet speeds are slower or device storage is limited.</p><p>On platforms such as the Google Play Store, smaller applications can also provide a better experience for users because they download faster and consume less storage.</p><p>In short, application size is not just a technical metric – it is part of the overall product experience.</p><p>Common Causes of Large App Sizes</p><p>In many projects, large application sizes are not caused by core functionality but by unnecessary components included during development.</p><p>Some common causes include:</p><ol><li>Unused third-party libraries and SDKs</li><li>Large or unoptimized image assets</li><li>Debug or logging code included in release builds</li><li>Unused resources such as layouts, strings, or drawables</li></ol><p>Over time, these elements accumulate and significantly increase the size of the final application package.</p><p>A Practical Example</p><p>During a recent application review, an Android project had grown to approximately 50MB.</p><p>After analyzing the build, several optimization opportunities were identified:</p><ol><li>Removing unused dependencies</li><li>Optimizing image assets</li><li>Cleaning unused resources</li><li>Enabling proper code and resource shrinking</li></ol><p>After applying these optimizations, the final application size was reduced to around 16MB, while maintaining the same functionality and features.</p><p>The result was a lighter application that installs faster and improves the overall user experience.</p><p>How to Overcome Large App Size</p><p>Reducing application size does not always require major architectural changes. A few focused improvements can make a significant difference.</p><ol><li>Review Dependencies Regularly</li></ol><p>Third-party libraries often add several megabytes to an application. Periodically reviewing dependencies and removing unused SDKs can significantly reduce the final package size.</p><p>2. Enable Code and Resource Shrinking</p><p>Android provides built-in optimization tools such as R8 code shrinker, which remove unused classes, methods, and fields from the production build. Resource shrinking can also eliminate unused images, layouts, and strings.</p><p>3. Optimize Images and Assets</p><p>Media assets can quickly increase application size. Converting images to optimized formats and removing unused resources can reduce the application footprint before publishing.</p><p>Final Thoughts</p><p>Application size should not be treated as an afterthought.</p><p>A smaller application leads to:</p><ol><li>Faster downloads</li><li>Better install conversion rates</li><li>Improved user experience</li></ol><p>Regularly reviewing build size and dependencies helps ensure that only necessary components are shipped to users.</p><p>💬 What is the biggest app size reduction you have achieved in an Android project?</p><p>#AndroidDevelopment #AndroidDev #MobileDevelopment #Kotlin #SoftwareEngineering #AppOptimization #Performance</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e63af377b794" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortless OTP Auto Verification in React Native Using react-native-otp-auto-verify]]></title>
            <link>https://medium.com/@kailas-rathod/effortless-otp-auto-verification-in-react-native-using-react-native-otp-auto-verify-ae9735fa2959?source=rss-c9f536b3a9e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae9735fa2959</guid>
            <category><![CDATA[otp-validation-api]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[otp-verification]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Kailas Rathod]]></dc:creator>
            <pubDate>Tue, 10 Mar 2026 04:55:14 GMT</pubDate>
            <atom:updated>2026-03-13T04:36:41.360Z</atom:updated>
            <content:encoded><![CDATA[<p>Improve authentication UX in React Native apps by automatically reading OTP codes using Android’s SMS Retriever API.</p><h3>Introduction</h3><p>OTP-based authentication has become a <strong>standard pattern in modern mobile applications</strong>. From fintech platforms to ride-sharing apps, verifying a user’s phone number through a <strong>One-Time Password (OTP)</strong> is one of the most widely used identity verification methods.</p><p>However, while OTP authentication improves <strong>security and identity verification</strong>, the <strong>user experience around entering OTPs is often poor</strong>.</p><p>Users typically need to:</p><ol><li>Wait for the SMS to arrive</li><li>Switch between apps</li><li>Copy the OTP manually</li><li>Return to the app and paste it</li></ol><p>Even with clipboard suggestions or auto-fill keyboards, the process still introduces <strong>friction during onboarding or login flows</strong>.</p><p>For production mobile applications where <strong>conversion rate and user experience matter</strong>, this small friction can significantly impact <strong>user drop-off rates</strong>.</p><p>This is exactly the problem I wanted to solve while building production-scale mobile applications — which led to creating the open-source library</p><h3><strong>react-native-otp-auto-verify</strong>.</h3><p><a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a><br><a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">https://github.com/kailas-rathod/react-native-otp-auto-verify</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B0aKbTWMlzuCqkMyg-1U9Q.png" /></figure><h3>The Problem: Manual OTP Entry</h3><p>When building OTP-based authentication flows in React Native, developers often encounter several challenges.</p><h3>1. Friction in Authentication Flows</h3><p>Every additional user action increases the chance of <strong>user abandonment</strong>.</p><p>Manual OTP entry forces the user to</p><ul><li>Read the message</li><li>Remember or copy the code</li><li>Return to the app</li><li>Enter the OTP</li></ul><p>Even a <strong>5–10 second delay</strong> can negatively affect onboarding conversion rates.</p><h3>2. SMS UX Problems</h3><p>OTP messages often arrive when the user is already inside the app waiting for verification.</p><p>Without auto-reading capability:</p><ul><li>Users must switch apps</li><li>Copy OTP manually</li><li>Return to the app</li></ul><p>This creates a <strong>broken UX flow</strong>.</p><h3>3. Increased User Drop-Off</h3><p>In production apps, OTP verification is frequently part of the following:</p><ul><li><strong>New user onboarding</strong></li><li><strong>Passwordless login</strong></li><li><strong>Phone number verification</strong></li></ul><p>If the verification process feels slow or confusing, users may abandon the flow completely.</p><h3>4. Implementation Complexity for Developers</h3><p>Implementing <strong>automatic OTP detection</strong> in React Native is not trivial.</p><p>Developers typically need to:</p><ul><li>Work with <strong>Android native modules</strong></li><li>Integrate with <strong>Google’s SMS Retriever API</strong></li><li>Handle <strong>app hash generation</strong></li><li>Bridge native code with JavaScript</li></ul><p>This introduces <strong>additional complexity</strong>, especially for teams focused on shipping product features quickly.</p><h3>The Solution:react-native-otp-auto-verify</h3><p>To simplify OTP auto-verification in React Native applications, I created the npm package</p><p><strong>react-native-otp-auto-verify</strong></p><p>This library provides a <strong>simple and reliable way to automatically read OTP messages on Android</strong> using the <strong>SMS Retriever API</strong>, without requiring SMS permissions.</p><h3>Why This Library Was Created</h3><p>While building authentication flows in real production apps, I noticed:</p><ul><li>Many libraries were <strong>outdated</strong></li><li>Some required <strong>dangerous SMS permissions</strong></li><li>Others had <strong>complicated setup steps</strong></li></ul><p>I wanted a solution that was</p><ul><li>Lightweight</li><li>Production-friendly</li><li>Easy to integrate</li><li>Secure</li></ul><h3>Key Features</h3><p>react-native-otp-auto-verify provides several useful capabilities:</p><p><strong>Automatic OTP detection</strong></p><p>The library listens for incoming OTP messages and extracts the code automatically.</p><p><strong>No SMS permission required</strong></p><p>It uses <strong>Google’s SMS Retriever API</strong>, which works without requesting SMS read permissions.</p><p><strong>React Native friendly</strong></p><p>Provides a simple JavaScript interface while handling the native Android implementation internally.</p><p><strong>Improved authentication UX</strong></p><p>Automatically fills OTP input fields, creating a <strong>smooth onboarding experience</strong>.</p><h3>Platform Support</h3><p>Currently, the library supports:</p><p><strong>Android</strong></p><ul><li>Uses <strong>SMS Retriever API</strong></li><li>Works without READ_SMS permission</li><li>Secure and recommended by Google</li></ul><p>For iOS, OTP auto-fill is typically handled by <strong>Apple’s native SMS auto-fill feature</strong> through the keyboard suggestion bar.</p><h3>How It Works (Technical Overview)</h3><p>Understanding the underlying mechanism helps developers correctly implement OTP auto-verification.</p><h3>SMS Retriever API</h3><p>Android provides the <strong>SMS Retriever API</strong> as part of Google Play Services.</p><p>This API allows apps to <strong>listen for specific SMS messages</strong> containing an app-specific hash.</p><p>The key advantage is that</p><ul><li>The app <strong>does not need SMS read permission</strong></li><li>Only messages containing the <strong>correct hash</strong> are delivered to the app</li></ul><p>This makes the system <strong>secure and privacy-friendly</strong>.</p><h3>React Native Native Bridge</h3><p>react-native-otp-auto-verify connects the <strong>Android native implementation</strong> with <strong>React Native JavaScript</strong> through a native bridge.</p><p>The process looks like this:</p><ol><li>React Native starts the OTP listener</li><li>Native Android module activates SMS Retriever</li><li>An incoming SMS is captured</li><li>OTP is extracted</li><li>OTP is returned</li></ol><p>This abstraction allows developers to <strong>use the feature with only a few lines of code</strong>.</p><h3>Implementation Example</h3><p>Let’s look at a simple integration example.</p><h3>Installation</h3><p>Install the library using npm:</p><pre>npm install react-native-otp-auto-verify</pre><p>or using yarn:</p><pre>yarn add react-native-otp-auto-verify</pre><p>After installing, run:</p><pre>cd ios &amp;&amp; pod install</pre><h3>App Hash</h3><p>The <strong>App Hash</strong> is a unique identifier generated from your app’s package name and signing certificate.</p><p>The OTP SMS sent by your backend must include this hash.</p><p>SMS Retriever only delivers messages that include your 11-character app hash.<br>Example SMS format:</p><pre>import { getHash } from &#39;react-native-otp-auto-verify&#39;;<br>const hashes = await getHash();<br>const appHash = hashes[0]; // send this to your backend</pre><pre>Dear Rathod, 321500 is your OTP for mobile authentication. This OTP is valid for the next 15 minutes. Please DO NOT share it with anyone.<br>uW87Uq6teXc</pre><p>Where:</p><ul><li>482193 → OTP code</li><li>FA+9qCX9VSu → App hash</li></ul><p>When Android receives this SMS, the <strong>SMS Retriever API detects the hash</strong> and delivers the message directly to the app.</p><h3>2) Format your OTP SMS</h3><p>Your backend must include the app hash at the end of the SMS.</p><p>Requirements:</p><ul><li>Message must be ≤ 140 bytes</li><li>Must contain a 4–6 digit OTP</li><li>Must end with the app hash from getHash()</li></ul><p>Recommended format:</p><pre>Dear Rathod, 321500 is your OTP for mobile authentication. This OTP is valid for the next 15 minutes. Please DO NOT share it with anyone.<br>uW87Uq6teXc</pre><p>Note: You do not need &lt;#&gt; at the start of the message.</p><h3>3) Hook usage (recommended)</h3><p>Start listening only while the OTP screen is visible (foreground).</p><pre>import React from &#39;react&#39;;<br>import { Text, View } from &#39;react-native&#39;;<br>import { useOtpVerification } from &#39;react-native-otp-auto-verify&#39;;<br>export function OtpScreen() {<br>  const { hashCode, otp, timeoutError, error, startListening, stopListening } =<br>    useOtpVerification({ numberOfDigits: 6 });<br><br><br>React.useEffect(() =&gt; {<br>    void startListening();<br>    return () =&gt; stopListening();<br>  }, [startListening, stopListening]);<br>  return (<br>    &lt;View&gt;<br>      {!!hashCode &amp;&amp; &lt;Text&gt;Hash: {hashCode}&lt;/Text&gt;}<br>      {!!otp &amp;&amp; &lt;Text&gt;OTP: {otp}&lt;/Text&gt;}<br>      {timeoutError &amp;&amp; &lt;Text&gt;Timeout. Tap resend and try again.&lt;/Text&gt;}<br>      {!!error &amp;&amp; &lt;Text&gt;Error: {error.message}&lt;/Text&gt;}<br>    &lt;/View&gt;<br>  );<br>}</pre><p>🔹 Step 1 — Start OTP Listener</p><pre>import { useOtpVerification } from &#39;react-native-otp-auto-verify&#39;;<br>const { startOtpListener, stopListener, otp } = useOtpVerification();<br>useEffect(() =&gt; {<br>  startOtpListener();<br>  return () =&gt; stopListener();<br>}, []);</pre><h3>Create OTP Screen (Recommended Hook Method)</h3><pre>import React, { useEffect, useState } from &#39;react&#39;;<br>import {<br>  View,<br>  Text,<br>  TextInput,<br>  Button,<br>  Platform,<br>} from &#39;react-native&#39;;<br>import { useOtpVerification } from &#39;react-native-otp-auto-verify&#39;;<br>const OtpScreen = () =&gt; {<br>  const [otpValue, setOtpValue] = useState(&#39;&#39;);<br>  const {<br>    otp,<br>    hashCode,<br>    timeoutError,<br>    error,<br>    startListening,<br>    stopListening,<br>  } = useOtpVerification({ numberOfDigits: 6 });<br>  // Start listener when screen opens<br>  useEffect(() =&gt; {<br>    if (Platform.OS === &#39;android&#39;) {<br>      startListening();<br>    }<br>    return () =&gt; {<br>      stopListening();<br>    };<br>  }, []);<br>  // Auto verify when OTP received<br>  useEffect(() =&gt; {<br>    if (otp) {<br>      setOtpValue(otp);<br>      verifyOtp(otp);<br>    }<br>  }, [otp]);<br>  const verifyOtp = async (code: string) =&gt; {<br>    console.log(&#39;Verifying OTP:&#39;, code);<br>    // Call your backend API here<br>    // await api.post(&#39;/verify-otp&#39;, { otp: code })<br>  };<br>  return (<br>    &lt;View style={{ padding: 20 }}&gt;<br>      &lt;Text&gt;Enter OTP&lt;/Text&gt;<br>      &lt;TextInput<br>        value={otpValue}<br>        onChangeText={setOtpValue}<br>        keyboardType=&quot;number-pad&quot;<br>        maxLength={6}<br>        textContentType=&quot;oneTimeCode&quot;<br>        autoComplete=&quot;sms-otp&quot;<br>        style={{<br>          borderWidth: 1,<br>          padding: 12,<br>          marginVertical: 12,<br>        }}<br>      /&gt;<br>      &lt;Button title=&quot;Verify&quot; onPress={() =&gt; verifyOtp(otpValue)} /&gt;<br>      {timeoutError &amp;&amp; (<br>        &lt;Text style={{ color: &#39;red&#39; }}&gt;<br>          Timeout. Please resend OTP.<br>        &lt;/Text&gt;<br>      )}<br>      {error &amp;&amp; (<br>        &lt;Text style={{ color: &#39;red&#39; }}&gt;<br>          Error: {error.message}<br>        &lt;/Text&gt;<br>      )}<br>    &lt;/View&gt;<br>  );<br>};<br>export default OtpScreen;</pre><h3>Start OTP Listener in Screen</h3><pre>import React, { useEffect, useState } from &#39;react&#39;;<br>import { View, TextInput, Text } from &#39;react-native&#39;;<br>import { useOtpVerification } from &#39;react-native-otp-auto-verify&#39;;<br>export default function OtpScreen() {<br>  const [otpValue, setOtpValue] = useState(&#39;&#39;);<br>  const {<br>    otp,<br>    startListening,<br>    stopListening,<br>  } = useOtpVerification({ numberOfDigits: 6 });<br>  useEffect(() =&gt; {<br>    startListening();   // Start listening<br>    return () =&gt; {<br>      stopListening();  // Cleanup<br>    };<br>  }, []);<br>  useEffect(() =&gt; {<br>    if (otp) {<br>      setOtpValue(otp);   // OTP automatically retrieved here<br>      console.log(&#39;Retrieved OTP:&#39;, otp);<br>    }<br>  }, [otp]);<br>  return (<br>    &lt;View&gt;<br>      &lt;TextInput<br>        value={otpValue}<br>        onChangeText={setOtpValue}<br>        keyboardType=&quot;number-pad&quot;<br>        maxLength={6}<br>      /&gt;<br>    &lt;/View&gt;<br>  );<br>}</pre><h3>iOS OTP AutoFill (Native)</h3><p>iOS does not allow third-party libraries to read SMS messages.</p><p>Automatic SMS reading is restricted by Apple for privacy and security reasons.<br>Instead, iOS provides a native feature called Security Code AutoFill, which suggests the OTP above the keyboard when properly configured.</p><p>This library does not auto-read OTP on iOS.</p><h4>How iOS OTP AutoFill Works</h4><ol><li>User receives an SMS containing an OTP.</li><li>iOS detects the code.</li><li>The OTP appears above the keyboard.</li><li>User taps the suggestion.</li><li>The code fills automatically into the input field.</li></ol><p>No SMS permissions required.</p><p>Use the following configuration in your OTP input field:</p><pre>&lt;TextInput<br>  style={styles.input}<br>  keyboardType=&quot;number-pad&quot;<br>  textContentType=&quot;oneTimeCode&quot;<br>  autoComplete=&quot;sms-otp&quot;<br>  importantForAutofill=&quot;yes&quot;<br>  maxLength={6}<br>/&gt;</pre><ol><li>User receives an SMS containing an OTP.</li><li>iOS detects the code.</li><li>The OTP appears above the keyboard.</li><li>User taps the suggestion.</li><li>The code fills automatically into the input field.</li></ol><p>No SMS permissions required.</p><p>With this setup, the OTP will <strong>automatically appear in the input field when the SMS arrives</strong>.</p><h3>Production Use Cases</h3><p>OTP auto verification is widely used in production mobile applications.</p><p>Some common examples include:</p><h3>Phone Number Authentication</h3><p>Many apps use OTP verification as part of <strong>passwordless login systems</strong>.</p><p>This is common in:</p><ul><li>Social platforms</li><li>Messaging apps</li><li>Community platforms</li></ul><h3>Fintech Applications</h3><p>Fintech apps rely heavily on OTP verification for the following:</p><ul><li>Secure account login</li><li>Transaction confirmation</li><li>Identity verification</li></ul><p>Fast OTP auto-fill improves <strong>both security and usability</strong>.</p><h3>Ride-Sharing Apps</h3><p>Apps like ride-sharing or delivery platforms use OTP verification during:</p><ul><li>User onboarding</li><li>Driver verification</li><li>Phone number validation</li></ul><p>Auto-verification reduces friction during sign-up.</p><h3>E-Commerce Onboarding</h3><p>Many e-commerce platforms allow users to <strong>sign up with just a phone number</strong>.</p><p>OTP auto-fill significantly speeds up the checkout or registration flow.</p><h3>OTP-Based Login Systems</h3><p>Modern apps increasingly adopt <strong>passwordless authentication</strong>, where OTP replaces traditional passwords.</p><p>This approach simplifies login while maintaining security.</p><h3>Production Insights &amp; Best Practices</h3><p>If you’re implementing OTP auto-verification in production apps, consider these best practices.</p><h3>Format Your SMS Correctly</h3><p>The OTP message should follow the SMS Retriever format:</p><pre>Dear Rathod, 321500 is your OTP for mobile authentication. This OTP is valid for the next 15 minutes. Please DO NOT share it with anyone.<br>uW87Uq6teXc</pre><pre>&lt;AppHash&gt; ==&quot;uW87Uq6teXc&quot;</pre><p>Incorrect formatting can cause OTP detection to fail.</p><h4>Architecture Diagram (SMS Retriever Flow)</h4><pre>+-------------------+<br>|  React Native App |<br>|  OTP Screen       |<br>+---------+---------+<br>          |<br>          | startListening()<br>          |<br>          v<br>+-------------------------+<br>| Native Android Module   |<br>| (SMS Retriever API)     |<br>+-----------+-------------+<br>            |<br>            | Listen for SMS<br>            |<br>            v<br>+-----------------------------+<br>|   Google Play Services      |<br>|   SMS Retriever Service     |<br>+-------------+---------------+<br>              |<br>              | SMS arrives with App Hash<br>              |<br>              v<br>+-----------------------------+<br>|  User SMS Message           |<br>|                             |<br>| &lt;#&gt; Your OTP is 482193      |<br>| FA+9qCX9VSu (App Hash)      |<br>+-------------+---------------+<br>              |<br>              | Hash Match<br>              |<br>              v<br>+-----------------------------+<br>| OTP Extracted               |<br>|                             |<br>| 482193                      |<br>+-------------+---------------+<br>              |<br>              v<br>+-----------------------------+<br>| React Native Hook           |<br>| useOtpVerification()        |<br>+-------------+---------------+<br>              |<br>              v<br>+-----------------------------+<br>| OTP Auto-filled in Input    |<br>| Verification API Called     |<br>+-----------------------------+</pre><h4>Architecture: How OTP Auto Verification Works</h4><pre>User Login Request<br>       │<br>       ▼<br>Backend Sends OTP SMS<br>       │<br>       ▼<br>SMS Contains OTP + App Hash<br>       │<br>       ▼<br>Android SMS Retriever API<br>       │<br>       ▼<br>React Native Native Module<br>       │<br>       ▼<br>OTP Extracted Automatically<br>       │<br>       ▼<br>OTP Auto-filled in Input Field<br>       │<br>       ▼<br>Verify API Called</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tmm2Mt6ipYspkwmB6XZYCQ.png" /></figure><h3>Use Short OTP Expiration</h3><p>OTP codes should typically expire within:</p><p><strong>30–120 seconds</strong></p><p>This reduces security risks and improves authentication integrity.</p><h3>Handle Timeouts Gracefully</h3><p>Sometimes OTP detection may fail due to network delays.</p><p>Provide:</p><ul><li><strong>Manual OTP entry</strong></li><li><strong>Resend OTP option</strong></li></ul><p>This ensures the user is never blocked.</p><h3>Improve Input UX</h3><p>Consider improving the OTP input experience by:</p><ul><li>Splitting OTP fields into <strong>6-digit input boxes</strong></li><li>Automatically moving focus</li><li>Auto-submitting once OTP is complete</li></ul><p>These small improvements significantly enhance usability.</p><h3>Conclusion</h3><p>OTP verification is a <strong>critical part of mobile authentication systems</strong>, but the default user experience often introduces unnecessary friction.</p><p>By automatically detecting OTP messages, developers can create <strong>seamless authentication flows that improve both usability and conversion rates</strong>.</p><p>The <strong>react-native-otp-auto-verify</strong> library simplifies this process for React Native developers by providing:</p><ul><li>A lightweight integration</li><li>Secure OTP detection via SMS Retriever API</li><li>A clean JavaScript interface for native functionality</li></ul><p>If you’re building <strong>production-grade authentication flows in React Native</strong>, integrating OTP auto verification can dramatically improve the user experience.</p><p>You can explore the library here:</p><p><strong>npm:</strong><br><a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a></p><p><strong>GitHub:</strong><br><a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">https://github.com/kailas-rathod/react-native-otp-auto-verify</a></p><p>If you’re working on mobile authentication systems, I hope this library helps simplify your implementation and improves the overall user experience for your users.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae9735fa2959" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seamless OTP Auto-Verification in React Native (Android)]]></title>
            <link>https://medium.com/@kailas-rathod/seamless-otp-auto-verification-in-react-native-android-3da6a7c97bba?source=rss-c9f536b3a9e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3da6a7c97bba</guid>
            <category><![CDATA[otp-sms-service]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[otp-verification]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[otp-sms]]></category>
            <dc:creator><![CDATA[Kailas Rathod]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 07:05:20 GMT</pubDate>
            <atom:updated>2026-02-18T07:08:22.414Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>react-native-otp-auto-verify</strong> is a lightweight React Native library for automatic OTP detection on Android using the official SMS Retriever API. It enables secure SMS-based verification without requesting the READ_SMS permission</p><h4>Using with react-native-otp-auto-verify</h4><p>Modern fintech and authentication-heavy applications demand <strong>frictionless yet secure user verification</strong>. Manually typing OTP codes increases drop-offs, input errors, and user frustration.</p><p>To solve this on Android, I built <strong>react-native-otp-auto-verify</strong> <br>a lightweight, production-ready React Native library powered by Google’s official SMS Retriever API.</p><p>📦 NPM Package:<br><a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a><br>git<br><a href="https://github.com/kailas-rathod/react-native-otp-auto-verify/tree/main?tab=readme-ov-file">https://github.com/kailas-rathod/react-native-otp-auto-verify/tree/main?tab=readme-ov-file</a></p><h3>🎯 Purpose of This Library</h3><p>react-native-otp-auto-verify enables <strong>automatic OTP detection on Android</strong> without requesting READ_SMS or RECEIVE_SMS permissions.</p><p>This means:</p><ul><li>✅ No SMS inbox access</li><li>✅ Fully Google Play compliant</li><li>✅ Secure hash-based delivery</li><li>✅ Ideal for fintech and banking apps</li><li>✅ Supports React Native New Architecture</li></ul><p>Unlike unsafe SMS-reading approaches, this library strictly uses Google’s official SMS Retriever flow.</p><h3>🧠 How to Works</h3><ol><li>Generates an <strong>11-character app hash</strong></li><li>Your backend appends that hash to the OTP SMS</li><li>Only SMS ending with that hash are delivered to your app</li><li>The app extracts the OTP automatically</li></ol><p>Your app:</p><ul><li>❌ Does NOT read the SMS inbox</li><li>❌ Does NOT request SMS permissions</li><li>✅ Only receives OTP messages meant specifically for it</li></ul><h3>🏦 Is It Safe for Banking Apps?</h3><p>Yes.</p><p>This implementation is compliant with <strong>Google’s official SMS verification guidelines</strong> and suitable for bank-regulated fintech apps, provided you follow backend validation best practices.</p><h3>Why It’s Secure</h3><ul><li>Uses official SMS Retriever API</li><li>No dangerous SMS permissions</li><li>App-specific hash prevents interception</li><li>No OTP storage in the library</li><li>Server-side validation required</li></ul><p><em>⚠️ Important: OTP must always be validated on your backend.</em></p><h3>🚀 Installation</h3><pre>npm install react-native-otp-auto-verify</pre><p>or</p><pre>yarn add react-native-otp-auto-verify</pre><p>For iOS (React Native CLI):</p><pre>npx pod-install</pre><blockquote><em>Note: Auto-verification works only on Android. iOS requires manual OTP entry.</em></blockquote><h3>📱 Requirements</h3><ul><li>React Native ≥ 0.60</li><li>Android minSdkVersion 24+</li><li>Google Play Services installed</li></ul><h3>🏗 React Native New Architecture Support</h3><p>The library supports:</p><ul><li>TurboModules</li><li>JSI</li><li>Fabric</li></ul><p>It works in both:</p><ul><li>Old Architecture</li><li>New Architecture</li></ul><p>Enable on Android:</p><pre>newArchEnabled=true</pre><p>Enable on iOS:</p><pre>use_react_native!(<br>  :fabric_enabled =&gt; true<br>)</pre><h3>🛠 How to Use</h3><h3>Option 1: Using the React Hook (Recommended)</h3><pre>import React from &#39;react&#39;;<br>import { useOtpVerification } from &#39;react-native-otp-auto-verify&#39;;</pre><pre>function OtpScreen() {<br>  const {<br>    hashCode,<br>    otp,<br>    sms,<br>    timeoutError,<br>    startListening,<br>    stopListening,<br>  } = useOtpVerification({ numberOfDigits: 6 });</pre><pre>  React.useEffect(() =&gt; {<br>    void startListening();<br>    return stopListening;<br>  }, [startListening, stopListening]);</pre><pre>  return (<br>    // Use hashCode (send to backend), otp, sms, timeoutError in UI<br>    null<br>  );<br>}</pre><h3>What Happens Here?</h3><ul><li>startListening() activates SMS Retriever</li><li>hashCode must be sent to your backend</li><li>OTP is automatically extracted</li><li>timeoutError becomes true after 5 minutes</li></ul><h3>Option 2: Imperative API</h3><pre>import {<br>  getHash,<br>  activateOtpListener,<br>  removeListener,<br>  extractOtp<br>} from &#39;react-native-otp-auto-verify&#39;;</pre><pre>const hashes = await getHash();</pre><pre>const subscription = await activateOtpListener(<br>  (sms, extractedOtp) =&gt; {<br>    const code = extractedOtp ?? extractOtp(sms, 6);<br>    if (code) {<br>      console.log(&#39;OTP:&#39;, code);<br>    }<br>  },<br>  { numberOfDigits: 6 }<br>);</pre><pre>//Stop listener<br>subscription.remove();</pre><h3>📩 Required SMS Format</h3><p>SMS must:</p><ul><li>Be ≤ 140 bytes</li><li>End with your 11-character app hash</li></ul><p>Example:</p><pre>&lt;#&gt; Your code is 123456<br>uW87Uq6teXc</pre><p>Without the hash, the message will NOT be delivered to your app.</p><h3>🔐 Banking &amp; Fintech Best Practices</h3><p>To make your app production-grade secure:</p><ol><li>Always validate OTP on backend</li><li>Set expiry (2–5 minutes)</li><li>Implement rate limiting</li><li>Send hash to backend via HTTPS</li><li>Invalidate OTP after successful use</li><li>Log verification events</li><li>Provide manual OTP fallback</li></ol><p>Auto-detection improves UX—backend validation ensures security.</p><h3>⏱ Timeout Behavior</h3><ul><li>SMS Retriever listens for 5 minutes</li><li>After timeout:</li><li>timeoutError becomes true</li><li>Or handler receives &quot;Timeout Error.&quot;</li></ul><p>You can restart listening by calling:</p><pre>startListening();</pre><h3>🧩 Why I Built This</h3><p>Many React Native OTP libraries:</p><ul><li>Request dangerous SMS permissions</li><li>Use unsupported hacks</li><li>Fail Play Store compliance checks</li><li>Break in banking app reviews</li></ul><p>react-native-otp-auto-verify was built to be</p><ul><li>Secure</li><li>Compliant</li><li>Minimal</li><li>Production-ready</li><li>Fintech-friendly</li></ul><h3>📦 Package Link</h3><p><a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a></p><h3>💡 Final Thoughts</h3><p>Automatic OTP verification significantly reduces:</p><ul><li>Login friction</li><li>User input errors</li><li>Drop-offs during onboarding</li></ul><p>But security must never be compromised.</p><p>By leveraging <strong>Google’s official SMS Retriever API</strong> through react-native-otp-auto-verify, you get the best of both:</p><p>✔ Seamless UX<br>✔ Regulatory compliance<br>✔ Backend-controlled security<br>✔ Modern React Native architecture support</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3da6a7c97bba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[react-native-otp-auto-verify—React Native SMS OTP Auto Detection (No SMS Permission Required)]]></title>
            <link>https://medium.com/@kailas-rathod/react-native-otp-auto-verify-react-native-sms-otp-auto-detection-no-sms-permission-required-029c5a363fec?source=rss-c9f536b3a9e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/029c5a363fec</guid>
            <category><![CDATA[ios-development]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Kailas Rathod]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 06:49:13 GMT</pubDate>
            <atom:updated>2026-02-18T06:49:13.442Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Automatic OTP Verification for React Native (Android)<br> </strong>📱<strong> Works without READ_SMS permission using Android SMS Retriever API<br> </strong>💼<strong> Play Store compliant • Fintech &amp; Banking ready • New Architecture support</strong></p><p>🔗 npm: <a href="https://www.npmjs.com/package/react-native-otp-auto-verify">https://www.npmjs.com/package/react-native-otp-auto-verify</a><br> 🔗 GitHub: <a href="https://github.com/kailas-rathod/react-native-otp-auto-verify">https://github.com/kailas-rathod/react-native-otp-auto-verify</a></p><p>📌<strong> What It Does</strong></p><p><a href="https://www.npmjs.com/package/react-native-otp-auto-verify?activeTab=readme">react-native-otp-auto-verify</a> automatically listens for OTP SMS messages and extracts the verification code without requiring dangerous permissions.</p><p>It uses the official <strong>SMS Retriever API</strong> to detect only messages containing your app’s hash.</p><p>This improves UX, reduces friction, and increases login/conversion rates.</p><p>🚀<strong> Key Features</strong></p><ul><li>✔ Automatic OTP retrieval (Android)</li><li>✔ No READ_SMS permission required</li><li>✔ Play Store compliant</li><li>✔ Works with React Native New Architecture (TurboModules &amp; JSI)</li><li>✔ Lightweight &amp; production-ready</li><li>✔ Simple API, minimal setup</li></ul><p>📦<strong> Installation</strong></p><p>Using npm:</p><p>npm install react-native-otp-auto-verify</p><p>Using yarn:</p><p>yarn add react-native-otp-auto-verify</p><p>Sync native modules:</p><p>npx pod-install</p><p>🧠<strong> How It Works</strong></p><ol><li>App generates an <strong>app hash</strong></li><li>Send OTP SMS from backend including that app hash</li><li>Android detects the OTP SMS</li><li>Library triggers callback</li><li>Token is extracted automatically</li></ol><p>Example SMS format supported:</p><pre>Your verification code is 123456<br>FA+9qCX9VSu</pre><p>📲<strong> Usage Example</strong></p><p><strong>Generate App Hash</strong></p><p>This hash is used by the SMS Retriever API to associate SMS with your app:</p><pre>import { getHash } from &#39;react-native-otp-auto-verify&#39;;<br>useEffect(() =&gt; {<br>getHash().then(hash =&gt; {<br>console.log(&#39;App Hash:&#39;, hash);<br>});<br>}, []);</pre><p><strong>Listen for OTP</strong></p><pre>import React, { useEffect } from &#39;react&#39;;<br>import {<br>startOtpListener,<br>removeListener,<br>} from &#39;react-native-otp-auto-verify&#39;;<br>const App = () =&gt; {<br>useEffect(() =&gt; {<br>// Start OTP listener<br>startOtpListener(message =&gt; {<br>const otp = /(\d{6})/g.exec(message)[1];<br>console.log(&#39;OTP Received:&#39;, otp);<br>});<br>// Cleanup on unmount<br>return () =&gt; {<br>removeListener();<br>};<br>}, []);<br>return null;<br>};<br>export default App;</pre><p>🧩<strong> API / Props</strong></p><p>FunctionDescriptiongetHash()Generates your Android app’s SMS Retriever hashstartOtpListener(callback)Starts listening for OTP SMSremoveListener()Removes the OTP listener</p><p>🛠<strong> Backend SMS Format</strong></p><pre>Your backend should send SMS in this format:<br>Your verification code is 987654<br>&lt;App Hash&gt;<br>Replace &lt;App Hash&gt; with the value returned by getHash().<br>Example:<br>Your verification code is 987654<br>FA+9qCX9VSu</pre><p>📍<strong> Supported Platforms</strong></p><p>PlatformSupportedAndroid✅ iOS <br>(SMS Retriever API is Android-only)</p><p>📈<strong> Use Cases</strong></p><p>🔐<strong> 1. Login/Signup Verification</strong></p><p>Automatically verify user identity during authentication.</p><p>💳<strong> 2. Fintech &amp; Banking</strong></p><p>Secure OTP flows without asking for SMS permissions.</p><p>📱<strong> 3. Two-Factor Authentication (2FA)</strong></p><p>Add frictionless second-step verification.</p><p>🛍<strong> 4. E-Commerce Registration</strong></p><p>Reduce drop-offs during signup.</p><p>📊<strong> 5. Large-Scale OTP Systems</strong></p><p>High traffic authentication (enterprise apps).</p><p>🧠<strong> Why Use This Library?</strong></p><p>✔ Better UX for users<br> ✔ Higher success rates<br> ✔ Eliminates manual OTP entry<br> ✔ Complies with Play Store policies<br> ✔ Works without dangerous permissions<br> ✔ Compatible with latest React Native architecture</p><p>🔄<strong> React Native New Architecture Support</strong></p><p>This library works with both:</p><ul><li>✔ Legacy bridge</li><li>✔ TurboModules / JSI (React Native New Architecture)</li></ul><p>Enable New Architecture in android/gradle.properties:</p><p>newArchEnabled=true</p><p>Rebuild:</p><p>cd android</p><p>./gradlew clean</p><p>cd ..</p><p>npx react-native run-android</p><p>🧪<strong> Debugging</strong></p><ul><li>Verify your backend SMS includes the <strong>correct app hash</strong></li><li>Ensure your app has internet and receiver permissions (SMS Retriever does not need READ_SMS)</li><li>Check log output for callback invocation</li></ul><p>🙌<strong> Help the Community</strong></p><p>If you find this package useful:</p><p>⭐ Star the repo<br> 📢 Share it with other developers<br> 📝 Report bugs / Request features<br> 💬 Write tutorials or blog posts</p><p>Contributions are welcome! 🙌</p><p>❤️<strong> Support &amp; Contribution</strong></p><p>Contributions are encouraged. You can help by:</p><ul><li>Improving documentation</li><li>Adding screenshots and examples</li><li>Creating reusable backend templates</li><li>Supporting iOS extensions or fallback SMS detection</li></ul><p>📜<strong> License</strong></p><p>MIT License © 2024</p><h3>Keywords</h3><p>React Native OTP auto verification</p><p>Automatic OTP read Android</p><p>OTP SMS retriever React Native</p><p>React Native SMS OTP without permissions</p><p>Play Store–compliant OTP verification</p><p>React Native New Architecture TurboModules</p><p>SMS Retriever API npm package</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=029c5a363fec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>