Inspired by https://blog.verslu.is/xamarin/xamarin-forms-xamarin/otp-auto-fill-entry-for-ios-with-xamarin-forms/
Add new OTPAutofillControl
It should contain Entry and Request Button
Entry should be autofilled on SMS received
RequestButton should run the command which requests OTP Code (up to user)
iOS:
Entry - extend Entry render with Control.TextContentType = UITextContentType.OneTimeCode;
Android: (https://www.c-sharpcorner.com/article/verify-otp-automatically-in-android-without-sms-read-permission-using-xamarin-fo/)
We should use SMS Retriever API
WHY we should implement SMS Retriever API
From Jan 9th, 2019 Google removed apps from playstore with permissions READ SMS AND CALL LOG, if they don鈥檛 explain the necessity
Advantages of SMS Retriever API
Wouldn't it be better to just create an effect for this? Instead of an entire control? Then you could easily attach the OTP logic to any Entry.
Most helpful comment
Wouldn't it be better to just create an effect for this? Instead of an entire control? Then you could easily attach the OTP logic to any Entry.