Explain the sfmc login and log out case?

534    Asked by DavidEdmunds in Salesforce , Asked on Mar 3, 2023

I am dealing with multiple login situations regarding Salesforce Marketing Cloud MobilePush.


If anybody knows the answers to any of the questions below, it would be a huge help.


1. Multiple user logging into an app on the same device

In that case, does that register the same DeviceID to multiple contacts with different contact keys?


2. When user logs out from the app When a user logs out from the app, the app should not send any messages to that user. How does Marketing Cloud usually process this? Does it set the contact's optin status as opt-out?

Answered by elonjigar

Multiple users is not a supported use case in sfmc login. Last-in-wins for Contact Key. Logout, similarly, is not currently (20220126) supported. Logout can be implemented by your application by clearing Attributes, removing Tags and setting the Contact Key to some unique value. DO NOT REUSE CONTACT KEYS like "logged out." Instead, create a unique GUID for the installation, retain it, and set that as the "anonymous" ContactKey when you want to log the user out. You might also consider using the delay registration until contact key is set feature if you do not intend on sending push notifications (or using other features of Marketing Cloud Push) when the user is unknown.


Your Answer

Interviews

Parent Categories