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
Open rate is not counted as 0 in AWS Pinpoint #3139
Comments
@OhashiTakuya Looking at the logs, it seems like notification opened is recorded correctly but not able to sync because Cognito is not configured when events are attempted to submit to Pinpoint. Could you please initialize Cognito in Application class so it is configured correctly when submitevent is called in the activity? |
@sdhuka I added the following code to the Application Class as you replied, but I still get the same error. Do you need any other code?
|
Just checking, you're still seeing |
@tjleing |
@OhashiTakuya now that you're initializing I was able to open notifications sent via a campaign in Pinpoint and see the open rate increase just fine. Just to be sure, you aren't setting If none of these work, could you try upgrading to SDK version 2.60.0 and also providing a redacted copy of your |
Ahh wait I just saw that you mentioned "Cognito's init is done in the Activity after opening, is it related?" -- this is almost certainly the issue; if |
@tjleing I am initializing AWSMobileClient inside the getPinpointManager function, and this function is called inside the onCreate method. I have copied the code below. Is there anything that I am doing wrong here?
|
@OhashiTakuya looks fine to me, I've been mostly using this sample app here -- did you set up Pinpoint with allowing unauthenticated access? You can check the authenticated and unauthenticated IAM policies in the AWS console to make sure. Then again, that would likely cause a different error. Can you please verify that you are still observing the error that Cognito Identity is not configured? |
Closing since we didn't hear back -- please open a new issue if the problem persists. |
State your question
I'm using aws-android-sdk-pinpoint to confirm receipt of push notifications, but the open rate remains 0 even if I open the push notification. Open rates are not documented.
In addition, the following message is displayed when a message is received.
In addition, the following message is displayed when a message is received. Cognito's init is done in the Activity after opening, is it related?
Which AWS Services are you utilizing?
AWS Pinpoint
Provide code snippets (if applicable)
Environment(please complete the following information):
Device Information (please complete the following information):
The text was updated successfully, but these errors were encountered: