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!

Adobe target integration with react native mobile app

Avatar

Level 2

Hi All,

We are trying to integrate adobe target in react native mobile app. We are using form based activity in target and expecting JSON in react native mobile app. We referred below documentation.

https://github.com/adobe/aepsdk-react-native/tree/main/packages/target

Library used: @adobe/react-native-aeptarget – version 5.0.0

Project Info: React Native -  + 0.70.6

 

please find the steps followed 

  1. Installed the library  @adobe/react-native-aeptarget.
  2. Followed initializing and registering the extension for android and iOS as mentioned in above document.
  3. Try to retrieve the content via retrieveLocationContent method by passing mboxParamters as mentioned in above document.

But API call is not happening.

 

 

var request1 = new TargetRequestObject("mboxname","defaultContent1",(error, content) => {
if (error) {
console.error(error);
} else {
console.log("Adobe content:" + content);}});
var locationRequests = [request1];
Target.retrieveLocationContent(locationRequests);

 

 

Topics

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

1 Reply

Avatar

Employee Advisor

Not sure if you have seen it already but there is a sample app here, so you could compare your implementation to that one