Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!

AEP Mobile SDK appendVisitorInfoForURL time out error

Avatar

Level 6

Hi,

 

We are working on an app using the latest AEP Mobile SDK ReactNative with Edge Bridge extension.

 

The appendVisitorInfoForURL API is used for visitor persistence between the mobile app and the web view. In iOS, the API call always return “timeout error” (Android is working fine).

 

Anyone has encountered the same issue and is there any way to work around it?

 

Thanks,

John

 

5 Replies

Avatar

Employee

Hi @Hey_John , 

 

Have you tried asking this in the AEP community too? Seems like there's not a lot of traction here in Analytics with this question.

Avatar

Level 6

It's now resolved. The issue was due to the confusion on the naming between the (leagcy) Identity for ECID Service and the new Identity for Edge.

 

When we migrate to Edge and on the React Native code, we forgot to take out the "Identity" from the AEPCore, but we removed the underlying Identity for ECID Service extension. Unfortunately, the error shows as timeout instead of something like API/library not found.

 

It's resolved after we take out "Identity" from AEPCore and import the "Identity" from IdentityforEdge.

 

Thanks.

Avatar

Level 1

Hey,

 

Hello,

 

I have the same issue using 

import { Identity } from '@adobe/react-native-aepcore';

Identity.appendVisitorInfoForURL(value)
 
But when I replace it with edge:
 
import { Identity } from '@adobe/react-native-aepedgeidentity';
Identity.appendVisitorInfoForURL(value)
 
It doen't work.
 
There is no API appendVisitorInfoForURL in @adobe/react-native-aepedgeidentity
 
How did you resolve your issue?

Avatar

Level 6

Hi @AshwinNa5 

 

appendVisitorInfoForURL is no longer availbale in Identity for Edge,

 

Use getUrlVariables() instead.

 

In case you need to keep both version of Identity,, try the following,

 

import {Identity as AEPIdentity} from '@adobe/react-native-aepcore';
import {Identity as AEPEdgeIdentity } from '@adobe/react-native-aepedgeidentity';

AEPIdentity.getUrlVariables().then(urlVariables =>
console.log('AdobeExperienceSDK (core): UrlVariables = ' + urlVariables),
);

AEPEdgeIdentity.getUrlVariables().then(urlVariables =>
console.log('AdobeExperienceSDK (Edge) : UrlVariables = ' + urlVariables),
);

Hope it helps.

 

Avatar

Level 1

Hey John,

 

Thank you for the details, this really helped me

 

Indeed you need to replace appendVisitorInfoForURL with getUrlVariables for AEPEdgeIdentity.

 

Thanks again!

 

Regards