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
- Installed the library @adobe/react-native-aeptarget.
- Followed initializing and registering the extension for android and iOS as mentioned in above document.
- 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);