aws-samples / retail-demo-store

AWS Retail Demo Store is a sample retail web application and workshop platform demonstrating how AWS infrastructure and services can be used to build compelling customer experiences for eCommerce, retail, and digital marketing use-cases
MIT No Attribution
713 stars 502 forks source link

Endpoint ChanelType can't be changed and fix to 'APNS' #633

Open llmin opened 2 weeks ago

llmin commented 2 weeks ago

Amplify identifyUser api can't update endpoint channel type and optOut. How to change these value. Sending email function can't work if these two value is not EAMIL and NONE

llmin commented 2 weeks ago

Pinpoint workshop failed to accept email due to this issue

jingnanl commented 2 weeks ago

The Pinpoint workshop code was based on Amplify V5, while the retail-demo-store is using V6 now. According to the Amplify doc

The address, optOut, and channelType options are no longer available as they do not affect Analytics endpoints.

The default value of channelType and optOut for the endpoint are APNS and ALL, which prevents Pinpoint campaign from sending emails to these endpoints.