Amplitude's start, sign-in and consent.
Initialise Amplitude with optOut: true, so it sends nothing before consent. It doesn't remember the choice, so call setEnabled with the stored answer on every launch.
optOut: true
setEnabled
Asks Amplitude to send what it has. Herald doesn't wait for the upload.
Clears the user id and changes the device id, so the next user isn't linked to this one.
The app starts Amplitude with init, so there is nothing to do.
init
Amplitude's start, sign-in and consent.
Initialise Amplitude with
optOut: true, so it sends nothing before consent. It doesn't remember the choice, so callsetEnabledwith the stored answer on every launch.