Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

How to Get Adobe Marketing Cloud ID (MCID) in React Native with Adobe Mobile AEP SDK?

Avatar

Level 4

 

I'm using the Adobe Mobile AEP SDK in a React Native app and trying to retrieve the Adobe Marketing Cloud ID (MCID).

Currently, when I test it using app.mcid, I’m getting the literal string: app.mcid = "adobe-marketing-cloud-id"

I'm not sure if I'm accessing the correct method to retrieve the actual MCID, or if something is misconfigured.

Can someone guide me on the correct way to get the real MCID using the AEP SDK in React Native? Also, is "adobe-marketing-cloud-id" just a placeholder or default value?

Any help would be appreciated. Thanks!

4 Replies

Avatar

Community Advisor and Adobe Champion

Hi,

 

Are you trying to retrieve it so that you can send it to a context variable? Or are you trying to just attach it to your XDM Stream for user identification?

 

The second case should happen automatically with the Visitor ID Service setting the values... but, if you are trying to capture this into a custom dimension, I can check with our developers and what they are doing.

Avatar

Level 4

I'm actually trying to retrieve the MCID so I can send it to a context variable. Currently we are sending all data through processing rules. 

For one of the other apps which is running on native framework, we retrieve that value from 

 

AEPIdentity framework

Identity.getExperienceCloudId

 

For this reactNative, where do we get this value? So I can ask the devs to pass it accordingly

Avatar

Community Advisor and Adobe Champion

OK, that sounds pretty much identical to what we are doing 🙂

 

Unfortunately, our main developer is on vacation, so I can't ask him.. 

 

However, I think this documentation might be the best place for your developers to start:

https://developer.adobe.com/client-sdks/home/base/mobile-core/identity/api-reference/

 

Particularly the section for "getExperienceCloudId"

 

 

Good Luck, and let me know if your developers get it working... or if I need to check with our developer next week

Avatar

Community Advisor and Adobe Champion

Sorry, I just realized you referenced getExperienceCloudId above... is there something wrong with this code on one of your apps?