android - CognitoCachingCredentialsProvider error "No valid credentials found in SharedPreferences" -



android - CognitoCachingCredentialsProvider error "No valid credentials found in SharedPreferences" -

i trying implement sample code provided amazon connecting dynamodb. first step initialization of clients , amazon says define credentials in constants class , utilize them such:

private void initclients() { cognitocachingcredentialsprovider credentials = new cognitocachingcredentialsprovider( context, constants.account_id, constants.identity_pool_id, constants.unauth_role_arn, null, regions.us_east_1);

when executed code, following: d/cognitocachingcredentialsprovider﹕ loading credentials sharedpreferences d/cognitocachingcredentialsprovider﹕ no valid credentials found in sharedpreferences

i created sharedpreferences file , set credentials in , still got same errors. know , cognitocachingcredentialsprovider looking in case?

that message isn't error - notification don't have credentials yet. don't worry creating sharedpreferences file, handled internally cognito. 1 time operation via credentials provider requires credentials, automatically cache them internally.

android amazon-cognito

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -