Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!

Get content from adobe target can not in react native

Avatar

Level 1

Hello why in react native i can't receive content data from this 

VinceLu_0-1718767625040.png

and this is my code in react native

const retrieveLocationContent = () => {
const request1 = new TargetRequestObject(
'mobile_app_content_mbox',
null,
'Default Content for Location 1',
(error, content) => {
if (error) {
console.error(error);
} else {
console.log('Adobe content: ' + content);
}
},
);

const locationRequests = [request1];

Target.retrieveLocationContent(locationRequests, null);
};
and i always get  result Default Content for Location 1. it's always callback result. how to get result json from adobe target?
Please help me
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies