Questions tagged [sms-retriever-api]

53 questions
24
votes
2 answers

SMS retriever api android not working in vivo v15 pro, redmi note 4

I have successfully implemented SMS retriever in my application using the guideline here . My Code is working fine and otp is auto populated in many devices but some of the devices like vivo v15 pro, redmi note 4 it is not working…
MathanG
  • 1,195
  • 10
  • 22
18
votes
2 answers

How to use GoogleAPIClient (deprecated) with SMSRetriver API in Android

I am trying to implement SMS Retriever API for SMS verification. The official way mentioned in the documentation says to use GoogleApiClient along with HintRequest to retrieve the mobile number from the device HintRequest hintRequest = new…
12
votes
3 answers

SMS verification code request failed when authenticating using Firebase Auth

When authenticating using Firebase Auth, I want to auto input the code that is received via SMS. I am able to receive SMS and go through auth process manually, but when I use SmsRetriever, the app crashes and then the bottom sheet dialog shows…
11
votes
1 answer

OTP/SMS auto fetch issue using SMS Retriever API Android

I'm trying to use Google's SMS Retriever API for Automatic SMS Verification, but there is an issue in it. previously , I was reading sender number using getOriginatingAddress() and if it's valid sender number then read OTP otherwise it should not…
Atif AbbAsi
  • 5,633
  • 7
  • 26
  • 47
10
votes
3 answers

Error receiving broadcast Intent when using SmsRetriever

When authenticating using Firebase Auth, I want to auto input the code that is received via SMS. I am able to receive SMS and go through auth process manually, but when I use SmsRetriever, the app crashes and then the bottom sheet dialog shows up.…
6
votes
0 answers

Cant able to read SMS automatically using SMS retriever api when app is uploaded to play store

I'm using SMS Retriever API to send and receive otp message. When I tested my app in release and debug mode it works fine and automatically read otp but when I uploaded my app on play store it stops working. I have to type manually my otp. Please…
5
votes
1 answer

Getting different App's Hash String every time | SMS Retriever API

I am integrating SMS Retriever API in my android app. I followed below docs to generate app's hash string: https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string Following are the ways to generate Hash: 1)…
Kalpesh Wadekar
  • 1,237
  • 11
  • 19
4
votes
2 answers

Huawei SMS retriever api is not working and Huawei devices

I am trying to retrieve OTP in Huawei device. but it is not working. I have created the app in Huawei developer console with all the requirements. Below is the code i am using to retrieve the sms. private fun initSmsManager() { val task =…
4
votes
0 answers

Espresso: How to UI test Sms Retriever with User consent?

I am currently listening for Google Play services broadcasted action SmsRetriever.SMS_RETRIEVED_ACTION to check whether OTP SMS was retrieved. First, I start SmsRetriever: SmsRetriever.getClient(context).startSmsUserConsent(null) My…
3
votes
1 answer

Intent Redirection Vulnerability Notification From Google Play

I built a one-tap consent OTP-verification for my android app as per: https://developers.google.com/identity/sms-retriever/user-consent/request The only difference in my code is that I changed override fun onCreate(savedInstanceState: Bundle?) { …
3
votes
0 answers

React-native sms retriever not working as expected

I am working on a React Native app - sms-retriever API to read SMS automatically to retrieve OTP from message Following this article: https://github.com/Bruno-Furtado/react-native-sms-retriever _onSmsListenerPressed = async () => { alert('waiting…
Khaja Nizamuddin
  • 167
  • 1
  • 2
  • 9
3
votes
1 answer

How to automatically read SMS in Android?

From Jan 9th, 2019 Google will remove apps from Playstore with permissions READ SMS AND CALL LOG, if they don’t explain the necessity. Google introduced SMS Retriever API to automatically fetch a verification code sent via SMS within the app. But…
ravi
  • 2,722
  • 7
  • 25
  • 42
3
votes
0 answers

SMS Retriver Api doesn't auto fetch sms code on some devices. [Not Signature Issue]

In our app, we are using google's SMS Retriever API to auto fetch SMS code. It works fine on the majority of devices but there are some issues. On app update, sms-retriever API doesn't work unless the user clears app's cache. On some devices,…
Zeeshan Shabbir
  • 6,704
  • 4
  • 38
  • 74
3
votes
4 answers

How to get mobile number without country code when using HintRequest for phones mobile number in Android

I am using this code for getting mobile number. but the problem is the number I am getting is attached with its country code. I want a number without country code (only mobile number). I cannot cut the length of number because all country have…
2
votes
1 answer

SmsRetrieverClient Crash last update

Google docs say : Start listening for incoming messages Next, call the SMS User Consent API's startSmsUserConsent() method to start listening for incoming messages. If you know the phone number from which the SMS message will originate, specify it…
lUjekSh
  • 65
  • 1
  • 1
  • 8
1
2 3 4