Closed paulsjohnson91 closed 1 year ago
Hi, is there any update on this? It's been a few weeks
@chrisbonifacio any update here?
@paulsjohnson91 @biller-aivy Are either of you still experiencing this issue?
@paulsjohnson91 @biller-aivy
Are either of you still experiencing this issue?
I created a Lambada with the pinpoint sdk and manage this by myself now.
@paulsjohnson91, I wanted to follow up to see you're still experiencing issues with trying to send email/notifications to users or if you've found a workaround by now. There's a few topics covered in this issue that I'll try to delineate and see if there's better assistance we can provide... or possibly absorb the topics into related issues.
"Although I am getting analytics through, all endpoints are coming through as ineligible, and if I try to manually set them to eligible, I can only use one channel type at a time."
When you referenced the channelType
property and were using EMAIL
or GCM
, would you mind clarifying what the intended use case here is?
EMAIL
is valid as a channel in Amazon Pinpoint for endpoint requests and an option to select on the Amplify CLI when you run amplify add notifications
, it can't be used for the updateEndpoint()
method that I think you're trying to use it for. When being used for updateEndpoint()
, the channelType
is used to specify the Push Notification channel types and takes values such as APNS
or GCM
. The docs within Analytics are not clear on this currently, but there is an incoming PR to address this and make improvements! As for multiple endpoints issue, this is still a limitation at this time. This feature request is covered in the following issue: #6289, and we are reviewing a solution to permit multiple endpoints to be updated simultaneously. Any updates for progress on this will be given in that issue.
Apologies on a delayed response, but looking forward to unblocking you (if still an issue) and getting more context if possible!
Closing this issue as we have not heard back from you. Please review the comment above and provide any information/responses previously requested and we'd be happy to re-open this issue. For updates on the feature request to permit multiple endpoints to be updated simultaneously, follow issue #6289.
Thank you!
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
Analytics
Amplify Categories
analytics
Environment information
Describe the bug
Following the developers guide for pinpoint setup with amplify, it doesn't appear that cognito integration is working properly. Although I am getting analytics through, all endpoints are coming through as ineligible, and if I try to manually set them to eligible, I can only use one channel type at a time.
Expected behavior
I should be able to send emails and notifications to my users.
Reproduction steps
Link cognito to pinpoint
Enable analytics in your project
At this point I can see my endpoints being populated in pinpoint, but they are all ineligible (except for two manual),
To make these endpoints eligible you need to add
If you try to add this to the initial config
Then the code complains because the address is missing. So here is the main problem, at this point whether I set the channel type to EMAIL or GCM (both of which I need) I need to provide the address, being either the users email or the users firebase token. I'm not sure why this is the case for the email because I have integrated cognito into pinpoint. If I have the users userId, I should be able to email that user from the test messaging section of pinpoint but it doesn't work because when I do a get users endpoints request, none exist for that userid unless I add them manually using the updateEndpoint function.
The other issue here is that there is only an updateEndpoint function, and there seems to be no way to set up two endpoints for a user, so I can either have a user with email, or with firebase notifications enabled, but not both.
Code Snippet
No response
Log output
No response
aws-exports.js
Manual configuration
No response
Additional configuration
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response