Build Your Mobile App Faster with AWS Mobile Services (Part 2 - Twitter)
-
Upload
amazon-web-services -
Category
Technology
-
view
254 -
download
2
Transcript of Build Your Mobile App Faster with AWS Mobile Services (Part 2 - Twitter)
// 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