Expand my Community achievements bar.

SOLVED

Adobe target integration with react native mobile app

Avatar

Level 3

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 Accepted Solution

Avatar

Correct answer by
Level 3

Hi @VinceLu Yes our issue is fixed. The problem was in adobe launch. Rules were not configured properly. After rules added and published, it worked in app.

View solution in original post

4 Replies

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

Avatar

Level 2

Helo is your problem solved? I have the same issue

Avatar

Correct answer by
Level 3

Hi @VinceLu Yes our issue is fixed. The problem was in adobe launch. Rules were not configured properly. After rules added and published, it worked in app.

Avatar

Level 2

what rules do we have to apply for that in our environment ?

 

Please help us with that