SMS Retriever API সহ স্বয়ংক্রিয় SMS যাচাইকরণ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
এসএমএস রিট্রিভার এপিআই-এর সাহায্যে, আপনি আপনার অ্যান্ড্রয়েড অ্যাপে স্বয়ংক্রিয়ভাবে এসএমএস-ভিত্তিক ব্যবহারকারী যাচাইকরণ করতে পারেন, ব্যবহারকারীকে ম্যানুয়ালি যাচাইকরণ কোড টাইপ করতে না হয় এবং কোনো অতিরিক্ত অ্যাপ অনুমতির প্রয়োজন ছাড়াই। আপনি যখন আপনার অ্যাপে স্বয়ংক্রিয় SMS যাচাইকরণ প্রয়োগ করেন, তখন যাচাইকরণের প্রবাহটি এরকম দেখায়:

- একজন ব্যবহারকারী আপনার অ্যাপে এসএমএস যাচাইকরণ শুরু করেন। আপনার অ্যাপ ব্যবহারকারীকে একটি ফোন নম্বর প্রদান করতে বা পাসওয়ার্ড ইঙ্গিত নির্বাচকের জন্য স্মার্ট লক ব্যবহার করতে অনুরোধ করতে পারে যদি ব্যবহারকারীর অ্যাকাউন্ট তৈরি করার জন্য সেই তথ্যের প্রয়োজন না হয়।
- আপনার অ্যাপ ব্যবহারকারীর ফোন নম্বর যাচাই করার জন্য আপনার সার্ভারে একটি অনুরোধ করে। আপনার ব্যবহারকারীর ডাটাবেসে কি তথ্য পাওয়া যায় তার উপর নির্ভর করে, এই অনুরোধে ব্যবহারকারীর আইডি, ব্যবহারকারীর ফোন নম্বর বা উভয়ই অন্তর্ভুক্ত থাকতে পারে।
- একই সময়ে, আপনার অ্যাপ আপনার সার্ভার থেকে একটি SMS প্রতিক্রিয়া শোনার জন্য SMS Retriever API-কে কল করে।
- আপনার সার্ভার ব্যবহারকারীকে একটি এসএমএস বার্তা পাঠায় যাতে আপনার সার্ভারে ফেরত পাঠানোর জন্য একটি এককালীন কোড এবং একটি হ্যাশ থাকে যা আপনার অ্যাপকে শনাক্ত করে৷
- যখন ব্যবহারকারীর ডিভাইস এসএমএস বার্তাটি পায়, তখন Google Play পরিষেবাগুলি অ্যাপ হ্যাশ ব্যবহার করে তা নির্ধারণ করে যে বার্তাটি আপনার অ্যাপের জন্য তৈরি করা হয়েছে এবং SMS Retriever API-এর মাধ্যমে বার্তা পাঠ্যটি আপনার অ্যাপে উপলব্ধ করে।
- আপনার অ্যাপ মেসেজ টেক্সট থেকে ওয়ান-টাইম কোড পার্স করে এবং আপনার সার্ভারে ফেরত পাঠায়।
- আপনার সার্ভার আপনার অ্যাপ থেকে এককালীন কোড গ্রহণ করে, কোডটি যাচাই করে এবং অবশেষে রেকর্ড করে যে ব্যবহারকারী সফলভাবে তাদের অ্যাকাউন্ট যাচাই করেছে।
আপনার অ্যাপে স্বয়ংক্রিয় SMS যাচাইকরণ বাস্তবায়ন করতে, Android এবং সার্ভার গাইড দেখুন:
অ্যান্ড্রয়েড গাইড সার্ভার গাইড
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe SMS Retriever API enables automatic SMS verification in Android apps, eliminating manual code entry for users.\u003c/p\u003e\n"],["\u003cp\u003eThis API streamlines user verification by having your app listen for an SMS message containing a one-time code, sent by your server after a verification request.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Play services identifies the incoming SMS message as intended for your app using an app hash included in the message, ensuring secure delivery of the verification code.\u003c/p\u003e\n"],["\u003cp\u003eThe SMS Retriever API enhances user experience and security by automating verification without requiring extra app permissions.\u003c/p\u003e\n"]]],[],null,["# Automatic SMS Verification with the SMS Retriever API\n\nWith the SMS Retriever API, you can perform SMS-based user verification in your\nAndroid app automatically, without requiring the user to manually type\nverification codes, and without requiring any extra app permissions. When you\nimplement automatic SMS verification in your app, the verification flow looks\nlike this:\n\n[](/static/identity/sms-retriever/flow-overview.png)\n\n1. A user initiates SMS verification in your app. Your app might prompt the user to provide a phone number or use the [Smart Lock for Passwords hint selector](/identity/smartlock-passwords/android/retrieve-hints) if that information wasn't required to create the user's account.\n2. Your app makes a request to your server to verify the user's phone number. Depending on what information is available in your user database, this request might include the user's ID, the user's phone number, or both.\n3. At the same time, your app calls the SMS Retriever API to begin listening for an SMS response from your server.\n4. Your server sends an SMS message to the user that includes a one-time code to be sent back to your server, and a hash that identifies your app.\n5. When the user's device receives the SMS message, Google Play services uses the app hash to determine that the message is intended for your app, and makes the message text available to your app through the SMS Retriever API.\n6. Your app parses out the one-time code from the message text and sends it back to your server.\n7. Your server receives the one-time code from your app, verifies the code, and finally records that the user has successfully verified their account.\n\nTo implement automatic SMS verification in your app, see the Android and server\nguides:\n\n[Android Guide](/identity/sms-retriever/request)\n[Server Guide](/identity/sms-retriever/verify)"]]