[Question] - [Analytics] - UpdateEndpoint is not send data
See original GitHub issueHi, I have a question about Analytics.updateEndpoint(), my case is:
- Configure Auth and Analytics properties in Amplify.configure on my startup file.
import Amplify, {
Analytics
} from 'aws-amplify';
Amplify.configure({
Auth: {
region: process.env.REACT_APP_AWS_REGION,
identityPoolId: process.env.REACT_APP_AWS_IDENTITY_POOL_ID,
userPoolId: process.env.REACT_APP_AWS_USER_POOL_ID,
userPoolWebClientId: process.env.REACT_APP_AWS_USER_POOL_CLIENT_ID,
},
Analytics: {
AWSPinpoint: {
region: process.env.REACT_APP_AWS_REGION,
appId: process.env.REACT_APP_AWS_PINPOINT_APP_ID,
mandatorySignIn: false
}
}
});
- After Amplify Login on Cognito UserPool I’m invoke the method Analytics.updateEndpoint() passing custom UserId and UserAttributes
Auth.currentUserInfo().then((info) => {
Analytics.updateEndpoint({
userId: info.attributes.sub,
userAttributes: info.attributes
}).then((data) => {
dispatch(setProgress(false));
dispatch({
type: LOGIN_SUCCESS,
user: data
});
dispatch(redirectTo('/'));
});
}).catch(error => {
dispatch(setProgress(false));
dispatch({
type: LOGIN_ERROR,
error: error
});
});
But when I invoke the method, on the Network tab on Google Chrome, the request is not there. I set up the Pinpoint to Stream events to Firehose and when I saw on S3 Files de userAttributes is empty and the UserId is not changing.
I would like to known if can I change endpoint Information after configure Amplify on startup?
Thanks
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
How to properly configure Amplify Analytics? - Stack Overflow
After doing this, it seems to me that the data in the Pinpoint console is not accurate. For example, there are currently 44...
Read more >pinpoint.updateEndpoint Giving error "NotFoundException
updateEndpoint Giving error "NotFoundException: Resource not found". -1. I am trying to create a dynamic segment in amazon pinpoint and then add endpoints....
Read more >Endpoint - Amazon Pinpoint - AWS Documentation
An endpoint represents a destination that you can send messages to, such as a mobile device, email address, or phone number.
Read more >AWS-Amplify/Lobby - Gitter
Everything works fine - except that the email address of the user (which I update using Analytics.updateEndpoint(...) is not contained in the Kinesis...
Read more >Tracking and Reminders in AWS Amplify
Understand with Analytics and engage with AWS Pinpoint. ... Track which features your users use in AWS Amplify and send them emails, push-notifications...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Updating this for future reference userAttributes object expects array values. Right implementation should be:
@madmed88 I think so, too. Made a detailed tutorial here.