Please how can i send back secret code to the user to validate app connectivity as it is done by whatsapp after a downloading the app there is a code which automatically comes then after accepting it takes you to another step please help thanks
Alternatively you can use Firebase UI Auth and let the user Authenticate using Phone (all happens automatically). Only works if GooglePhoneAuthentification is possible in your Country.
Alternatively you can use Firebase UI Auth and let the user Authenticate using Phone (all happens automatically). Only works if GooglePhoneAuthentification is possible in your Country.
How can i know wether GooglePhoneAuthentification is possible in my country is there like a list of countries were i can check and see wether my country allows it thanks
I just wanted to add that instead of using the SMS Retriever API, one could simply ask the user to enter the code they receive in the sms. That's what I do, and it works quite well.
I just wanted to add that instead of using the SMS Retriever API, one could simply ask the user to enter the code they receive in the sms. That's what I do, and it works quite well.
does that me that i store the secret code on my server then send it to the users phone number. if so what reliable sms api can i use and the cost implications because my fear is that incase the message is not deliver to the user in time then he will think that the app does not work
In my case I simply produced a basic hash from the phone number, and once the user entered the sms code I also re-transmitted their phone number to the server. When I received that I did the hash again to verify that the phone number and hash matched. Obviously you could store the code in a database instead, but why bother when it's so simple to do it like this? (For a touch of extra "security" I added todays date to the phonenumber hashed, so their code changed daily.)
I mean that if if you use the phone number to create a key or something else, your method will not work on tablets, since they do not have a phone number. This is if the number is obtained automatically and not directly asked to the user, obviously.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.