question

ankitachoudhari avatar image
ankitachoudhari asked

Issue with Amazon Analytics API

Hi, I was trying to implement Amazon Analytics in my android app. This application is still in development mode and so has not yet been uploaded to any of the markets. In my app, I have created an identifier, and I am using its public and private key to create the AmazonInsights object. Using this object I am getting my session objects properly and I am even able to call the pauseSession() and resumeSession() methods on them. But the statistics of my app are not visible on the Amazon site. I am even trying to launch the app on different devices in release mode, but I am seeing 0 results on the site. Also I am not getting any exception.Please can anyone help me. Thanks in advance.
mobile associates
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ankitachoudhari avatar image
ankitachoudhari answered
I am getting an an error in the logcat. Unable to successfully deliver events to server. Response code (-1000) Unable to communicate with service, javax.net.ssl.SSLException: Not trusted server certificate
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Ankitachoudhari, Thank you for writing to us. We have forwarded this to the appropriate team. I will update this thread after getting response from them. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Ankita, Thank you for patience. We want you to help us with little information. Can you please go though the below result and let us know about the result? Check the certificate in a browser on a computer: 1. Open a browser 2. Go to https://applab-sdk.amazon.com/1.0/applications/asdf/events 3. See if the browser determines if the certificate is valid or invalid If the certificate is not valid: 1. Ping applab-sdk.amazon.com and send us the resulting IP address 2. In the browser, export the SSL certificate details and send back to us If the certificate is valid on the computer: 1. Try the SSL certificate check in Chrome on a mobile device (recommend Chrome as not all browsers allow for this functionality) Additionally, are the devices using a wifi or WAN connection?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ankitachoudhari avatar image
ankitachoudhari answered
Hi, I am using WAN. I have enabled data transfer using WAN. InsightsOptions options = AmazonInsights.newOptions(true, true); The address you suggested to verify gives me ann error Access Denied. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
I implemented the Amazon Analytics API and disconnected from wifi and tried getting the variation, I got below error "Unable to successfully retrieve variations from server. Response code (-1000) Unable to communicate with service, java.net.UnknownHostException: Unable to resolve host " applab-sdk.amazon.com": No address associated with hostname" Can you check in open network which is not under firewall.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Ankita, Can you please let us know the results of the following steps? Check the certificate in a browser on a computer: 1. Open a browser 2. Go to https://applab-sdk.amazon.com/1.0/applications/asdf/events 3. See if the browser determines if the certificate is valid or invalid If the certificate is not valid: 1. Ping applab-sdk.amazon.com and send us the resulting IP address 2. In the browser, export the SSL certificate details and send back to us If the certificate is valid on the computer: 1. Try the SSL certificate check in Chrome on a mobile device (recommend Chrome as not all browsers allow for this functionality)
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello Manan, Looking at your logs it appears you are running into an issue with getting your service authorization setup correctly. 2-26 05:29:59.932: E/AmazonMobileAnalyticsSDK(7207): com.amazonaws.AmazonServiceException: Not authorized to perform sts:AssumeRoleWithWebIdentity (Service: AWSSecurityTokenService; Status Code: 403; Error Code: AccessDenied; Request ID: 684b6b7d-bd4a-11e4-9021-b957f90d0f83) If you look in the Amazon Mobile Analytics document, we discuss the steps that are required for configuring your Cognito Identity Pool to allow for anonymous use. Please refer to our documentation for more information: http://docs.aws.amazon.com/mobile/sdkforandroid/developerguide/analytics.html#integrating-amazon-mobile-analytics
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.