Skip to main content
Level 2
Jun 19, 2024 3:28 AM UTC
Question

Get content from adobe target can not in react native

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

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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Jul 17, 2024 12:00 PM UTC

same issue, have you resolved this?

Translate
nialldbarber
Nov 25, 2024 3:50 PM UTC

@sophia_filwa @vincelu did either of you find an answer to this? 

 

I'm also trying to set this up, following the setup guide, but am also running into this issue. 

Translate