Date post: | 17-Aug-2015 |
Category: |
Technology |
Upload: | amazon-web-services |
View: | 254 times |
Download: | 2 times |
// Create a digits button and callback
DigitsAuthButton digitsButton = (DigitsAuthButton) findViewById(R.id.auth_button);
digitsButton.setCallback(new AuthCallback() {
@Override
public void success(DigitsSession session, String phoneNumber) {
println(phoneNumber)
}
@Override
public void failure(DigitsException exception) {
// Do something on failure
}
});
DIGITS CODE EXAMPLE
Digits code that performs full SMS auth and provides simple
callback() on success
WHY WE LOVE AWS
• Cognito integrates seamlessly with great identity tools
like Twitter/Digits
• Lambda helps mobile developers build infinitely scable,
simple back-end services
• Storage options are easily configurable and swappable
(DynamoDB vs. Postgres vs. S3)
USE CASES
• Deliver notifications or offers to user via Amazon SMS
• Connect with existing CRM solution to pre-populate user
experience (Frequent Flyer status, Rewards member,
etc.)
• Track in-app activity for personalization or A/B testing
• Protect against bot/spam abuse through phone
verification