-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Changing this issue over as new AWS features make this much simpler. We should set up an opt-out list in Pinpoint for each phone number. This will give them independent opt-out lists rather than a combined account-level one.
Eventually we can use Pinpoint API calls to do this automatically, but for now it is few enough numbers to just set it up in the console manually.
ORIGINAL ISSUE TEXT:
I previously discussed this with Ryan Ahearn. Right now it is quite likely that opting out of one service will result unexpectedly in being opted out of all services.
This is a long term problem and it will be some time before it occurs, but we need to keep track of the association between phones and the services they subscribe to. Obviously we don't want to store any PII so one solution might be as follows:
Make a table with two columns "service_id" and "hash". Every time someone subscribes, a hash of their phone number is added to this table, associating it with the correct service.
Then, before sending, we grab the opt-out phone numbers from AWS and check them against this table, using the service_id of whoever wants to send the message. If we decide that the user has opted out of the service, we reject the message with some useful error message and update the 'provider_response' appropriately in the notifications table.
There might be other ways to do it, but that is what came to mind.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status