Kotlin - Autofill SMS without READ_SMS permission - kotlin

I need to do a feature to read the OTP from SMS and fill my field.
The only way today to do it is using SMS Retriever API from Google?
Nothing without a 3rd party lib?
I mean, Apple has it native.
We are avoiding using Retriever API because we don't want to change the SMS template we have.
Is there something that I can do about it?

The only alternative that is available now is to use SMS consent API, other than that it's not possible to detect the SMS now.
You can check about this by following the below link
https://developers.google.com/identity/sms-retriever/user-consent/request

Related

Otp verification in react native

I want to implement auto fill otp in my react native app.
i have implemented this using "react-native-otp-verify" but it requires hash to capture otp.
I have found several other packages for this. All of them require a hash code in the sms to be able to read it. But i dont want to use hash.(Because i have not seen any hash code in otp sms of the daily use apps)
Is there any package that can capture otp without using hash or if there is an alternative way of doing this.
Please throw some light on this.
I have used an alternative way to detect incoming message , and you can extract your OTP from that message
you can use react-native-android-sms-listener library
SmsListener.addListener(message => {
//put your code to capture message & verify
});

How to use autofill otp like google's one-tap SMS verification with the SMS User Consent API in React Native

I'm trying to achieve phone number verification with the autofill feature in React native application. So far, I've discovered that there are 2 ways i.e either append hash key in sms body or use SMS User Consent API like https://developers.google.com/identity/sms-retriever/user-consent/overview
Is there any way/library through which we can avoid using the hash key?

Is there a way to use WhatsApp API with third party apps?

I am new to using WhatsApp API. I am not sure but it seems that the api is for business users only. I want to use the api to send messages to users automatically based on a change in an app, (say PowerBI). I want to send updates regarding a report whenever a change is made and send it through whatsapp instead of email.
Yes, WhatsApp API is for business users. But, if you still looking for a WhatsApp bot I recommend Twilio, there are a lot of content about it in the internet. Check out this video, It's using python and really easy.

whatsapp business api is only used pre-selected company from whatsapp?

I guess whatsapp business api client is only used pre-selected company which whatsapp grant.
So, i want to know my guessing is right or not.
According to official guide, i need to register phone number to whatsapp.
I guess here exist whatsapp menu. but i can't see menu. (Sorry, i dont know the way website display english language)
Official guide mentions this. "If you cant see WhatsApp account option, you cant use Business API yet"
So i search how can i access Business API, and i can see this in WhatsApp FAQ.
Finally, according to below link, WhatsApp has granted to 90 pre-selected companies.
https://medium.com/callbell/what-changes-with-the-release-of-the-whatsapp-business-apis-46994316b763
As a result, if i want to use whatsapp business api, i need to use service which is provided official whatsapp partner company like twilio.
Someone tell me that My result is right?
Yes, you either need to fill out the request form to request access to WhatsApp Business API or use existing solution providers like Twilio.

How some whatsapp auto reply apps can use our own phone number to do auto reply? I want to build using PHP

I'm applying from Twilio to use their WhatsApp API service they are providing to build a WhatsApp auto-reply bot. But the problem here is that they want us to use the phone number they provide to us which we need to buy from them.
I tried using the URL 'https://api.whatsapp.com/send?phone=15551234567' but it just redirects to a page to send a message which I need to click 'Send' in order for it to submit our message. Besides that, we need to be able to trigger the application that a message is received from a recipient so we still need to access the API.
So how exactly is it I want to build a Whatsapp Auto Reply service to the public if Twilio provides it's own phone number only to reply. I want to reply using phone numbers that my clients register with me which is their own phone numbers.
As we know Whatsapp API is not open for public but how other Whatsapp Auto Reply apps are able to use our phone number to auto-reply to our recipients?
Would love some feedback or solutions from StackOverflow community. Thanks.
Twilio developer evangelist here.
Currently the Twilio documentation on using numbers on WhatsApp says:
Currently, we are unable to enable WhatsApp on non-Twilio numbers; support for this is coming soon and we will update these docs once available.
So this is just a current limitation and will be changed in the future.