Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

SMSActivation

A common system for user verification requests the phone number at which point an SMS is sent. On Android this can be intercepted automatically if a permission is granted. Elsewhere or if the permission isn't granted the user can input the number manually and effectively verify the phone number is indeed correct.

Initial UI

This whole process is encapsulated in this library which uses the Twilio API to send the verification SMS. Intercepts it on Android and effectively makes the UI workflow work properly on iOS, Android, Windows etc.

To launch this tool you can use:

TwilioSMS smsAPI = TwilioSMS.create(accountSID, authToken, fromPhone);
ActivationForm.create("Signup").
        show(s -> Log.p(s), smsAPI);

There are additional options you can use in ActivationForm such as:

  • codeDigits(int) - Number of digits in the activation code sent via SMS
  • enterNumberLabel(String) - Text of the label above the number input
  • includeFab(boolean) - True if a fab should be shown, by default a fab button will appear in Android only
  • includeTitleBarNext(boolean) - True if a next arrow should appear in the title, by default this would appear in non-Android platforms

Country code popup

About

Registration and verification of a user signup via SMS code

Resources

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
You can’t perform that action at this time.