-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AndroidPubSub Sample does not work!!! #719
Comments
@muellerfr Hi Muelle, thanks for your kind help. Could you give some constructive suggestion? |
@iwwork Thanks for submitting the issue. Apologies for the inconvenience. I will try to reproduce the issue and get back to you soon. |
Hi @iwwork ,
If you have |
@minbi this does not work. |
Can you elaborate or potentially provide a stacktrace? |
Sounds like this issue has been resolved as mentioned in #750. Closing this issue. |
this work just write the region in lowercase with - instade of _ and Caused by: java.lang.IllegalArgumentException: Failed to read CognitoIdentity please check your setup or awsconfiguration.json file will be initialise |
This issue was originally opened by @iwwork as a PR in the sample app repo:
awslabs/aws-sdk-android-samples#308
Which AWS Services are you utilizing?
AWS IoT
Provide code snippets (if applicable)
Followed the instruction https://github.com/awslabs/aws-sdk-android-samples/tree/master/AndroidPubSub to set the parameter on the AWS cloud
Downloaded the whole code from https://github.com/awslabs/aws-sdk-android-samples
Used Android Studio 3.3.1 to open the folder AndroidPubSub
Changed the following part
PubSubActivity.java
// IoT endpoint
// AWS Iot CLI describe-endpoint call returns: XXXXXXXXXX.iot..amazonaws.com
private static final String CUSTOMER_SPECIFIC_ENDPOINT = "REPLACE_ME";
// Name of the AWS IoT policy to attach to a newly created certificate
private static final String AWS_IOT_POLICY_NAME = "REPLACE_ME";
awsconfiguration.json
"PoolId": "REPLACE_ME",
"Region": "Regions.US_EAST_1"
Sync, Build and Run App on emulator9.0 or Mobile Phone8.0, the result in Logcat is
Seems that the AWS modules do not work in the App.
How to deal with this problem?
Should there some other code be added?
Environment(please complete the following information):
Device Information (please complete the following information):
If you need help with understanding how to implement something in particular then we suggest that you first look into our developer guide. You can also simplify your process of creating an application, as well as the associated backend setup by using the Amplify CLI.
The text was updated successfully, but these errors were encountered: