I am using AWS cognito for login in. I don't want to hardcode the values of userPoolId, clientId , clientSecret and region. I found a way using
CognitoUserPool userPool = new CognitoUserPool(this, AWSMobileClient.getInstance().getConfiguration());
but userPool is giving null value.
awsconfiguration.json is placed in res/raw/awsconfiguration.json
Thankyou for the help in advance!!!
AWSMobileClient.getnstance().initializebefore gettinggetConfiguration()to the CognitoUserPool object. - Karthikeyan