Android Mobile SDK Customization of social login UI
search cancel

Android Mobile SDK Customization of social login UI

book

Article ID: 115910

calendar_today

Updated On:

Products

CA Rapid App Security CA Mobile API Gateway CA Mobile - APP Services

Issue/Introduction

In Android, the customer has implemented the Facebook login using MAG and Mobile SDK. 
During the social login flow, when the users are redirect to native app. the user wants to customize this screen.  If so, how could we do that? 
 

Environment

Mobile SDK 1.8 
MAG: 4.1

Resolution

The Mobile SDK uses Android AppAuth (https://github.com/openid/AppAuth-Android) to launch the Custom Chrome Tab, the section: https://github.com/openid/AppAuth-Android#obtaining-an-authorization-code explains how to directly transit to another activity on completion or cancellation. 
You can reference to the MASUI implementation under
https://github.com/CAAPIM/Android-MAS-SDK/blob/Stable/masui/src/main/java/com/ca/mas/ui/MASCustomTabs.java, you can replace the MASOAuthRedirectActivity with your custom activity.