I want to disable push notifications for a given user when they log out of my app. I only want to disable notifications for the particular device they logged out of, not for their entire account.
I'm setting a
contactKey when registering users so my first thought was to set the
nil for the logged out device, however contact key cannot be set to
The only other option I see is
sfmc_setPushEnabled(_:) but I'm unsure if this preference will be set per
deviceToken (i.e. per registered device) or for every device associated with the
contactKey (i.e. account wide).
- Also, what does setting the
pushEnabled status look like on the SFMC Mobile Push Portal side, does this affect the
opted in vs.
not yet opted in, or is this state visible in another way?
Using: SFMC iOS SDK 6.2.3 -> MobilePush