Hi - have you tried using the generated SDK for Android for your API? You generate that by going to the API Gateway console, go to your API, go to the stage you want to generate for (probably "Prod"), then the "SDK Generation" tab. You can choose Android as the platform.
The SDK will have generated classes for you to talk to your API (including if your API is set to use AWS_IAM for authorization), and the readme.md file will have samples.
ApiClientFactory factory = new ApiClientFactory(); // create a client final WebApiChallengeClient client = factory.build(WebApiChallengeClient.class);
Or, are you saying you are already using that generated SDK for your API, and still not working?
Android app crashes when access token expires with no network connection during Amplify API callasked 5 months ago
CloudFront + API Gateway AWS_IAM AuthorizationAccepted Answerasked 2 years ago
API Gateway as Reverse HTTP Proxy to SQSAccepted Answerasked 5 months ago
Sign API Gateway Request with Android SDKAccepted Answerasked 3 years ago
sending http request to API gateway from my frontend using IAM authorizationasked 3 months ago
How do I encrypt the payload from an API Gateway endpoint?asked 2 months ago
How to pass API Gateway authorizer context value as an HTTP headerasked 4 months ago
How to validate header values in the API Gateway request before the integrationAccepted AnswerEXPERTasked 2 years ago
Api Gateway requires authentication header in the CORS preflight requestasked 2 years ago
Lambda Authorizer with API Key enabled on API Gatewayasked 8 months ago