Welcome to Xamarin Guy Show Blog

Keep updated for latest and Greatest Posts from Xamarin guy

Xamarin Forms OTP Verification and Validation Twilio

OTP verification are very much essential for 2 Factor authentication which adds extra layer of security. So we are going to implement a basic application for the implementation of OTP validation in Xamarin forms application.

If you want to go through whole setup process then watch this tutorial : https://youtu.be/gA2KugrGIog

So first thing first :
Step 1 : Sign Up with Twilio
https://www.twilio.com/
Notes :
1. You have to enable Twilio Trail Number
2. You have to copy the AccountSID and AUTH Token and paste it inside your project.

This is my Dashboard of Twilio.

Step2 : If you want to understand more about Twilio Dashboard and configuration watch my video : https://youtu.be/gA2KugrGIog

Step 3 : Application side :
MainPage.Xaml

MainPage.xaml.cs

At last working project download it from here : http://xamaringuyshow.com/otpvalidationxamformstut68/

OTP on iPhone

Additional Note : If you are sending test message to some one abroad.

1.Add countries where you want to give access to.
2. Verify the user phone number [Only on the trail account]

1. ProgrammableSMS>Settings>GeoPermissions
2. Verifying the phone number[Trail Account Only]

 9,262 total views,  1 views today

Leave a Reply

Please disable your adblocker or whitelist this site!