-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Prerequisites
- This is not a Security Disclosure, otherwise please follow the guidelines in Security Policy.
- I have searched in this repository's issues to see if it has already been reported.
- I have updated to the latest released version of the SDK and the issue still persists.
Bug summary
I am getting this promise rejection when I try to run Identity.getExperienceCloudId(). It is giving this below general.callback.timeout promise rejection.
I am using these below package dependencies
"@adobe/react-native-aepassurance": "^7.0.0",
"@adobe/react-native-aepcore": "^7.0.0",
"@adobe/react-native-aepedge": "^7.0.0",
"@adobe/react-native-aepedgeconsent": "^7.0.0",
"@adobe/react-native-aepedgeidentity": "^7.0.0",
"@adobe/react-native-aeptarget": "^7.0.0"
This is how I implement
`
import {
MobileCore,
LogLevel,
PrivacyStatus,
Identity,
} from '@adobe/react-native-aepcore';
Identity.getExperienceCloudId().then(cloudId => {
console.log('AdobeExperienceSDK: CloudID = ' + cloudId);
});
`
Looking forward to hear form you ASAP.
Thanks.
Environment
System:
OS: macOS 15.3.2
CPU: (11) x64 Apple M3 Pro
Memory: 70.63 MB / 18.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.16.0
path: ~/.nvm/versions/node/v20.16.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.1
path: ~/.nvm/versions/node/v20.16.0/bin/npm
Watchman:
version: 2025.03.10.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK:
API Levels:
- "28"
- "29"
- "30"
- "34"
- "35"
Build Tools:
- 30.0.2
- 30.0.3
- 33.0.1
- 34.0.0
- 35.0.0
System Images:
- android-30 | Intel x86_64 Atom
- android-35 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.15989.150.2411.11948838
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 3.4.1
path: /opt/homebrew/opt/ruby/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.3.1
wanted: 18.3.1
react-native:
installed: 0.75.4
wanted: 0.75.4
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
Dependecies
"@adobe/react-native-aepassurance": "^7.0.0",
"@adobe/react-native-aepcore": "^7.0.0",
"@adobe/react-native-aepedge": "^7.0.0",
"@adobe/react-native-aepedgeconsent": "^7.0.0",
"@adobe/react-native-aepedgeidentity": "^7.0.0",
"@adobe/react-native-aeptarget": "^7.0.0"
Steps to reproduce
I call this Identity.getExperienceCloudId() to get ECID.
Current behavior
It is returning me the promise rejection general.timeout
Identity.getExperienceCloudId().then(cloudId => { console.log('AdobeExperienceSDK: CloudID = ' + cloudId); });
Expected behavior
It should be returning me the ECID
Identity.getExperienceCloudId().then(cloudId => { console.log('AdobeExperienceSDK: CloudID = ' + cloudId); });
Anything else?
I implemented it like this
`import {
MobileCore,
LogLevel,
PrivacyStatus,
Identity,
} from '@adobe/react-native-aepcore';
import {Edge} from '@adobe/react-native-aepedge';
import {crashlyticsLog} from '../firebase/plugins/crashlytics/firebaseCrashlytics';
import {Assurance} from '@adobe/react-native-aepassurance';
import {Consent} from '@adobe/react-native-aepedgeconsent';
export default class AnalyticsManager {
updatePrivacyStatusForAdobeCore(status: boolean) {
try {
// Update Privacy Status For Adobe Core
const privacyStatus = status
? PrivacyStatus.OPT_IN
: PrivacyStatus.OPT_OUT;
MobileCore.setPrivacyStatus(privacyStatus);
} catch (error) {
crashlyticsLog('error updating privacy status of adobe core:', error);
}
}
async setIntialConfig(appId: string) {
console.log('appId-->', appId);
const initOptions = {
appId: appId,
lifecycleAutomaticTrackingEnabled: true,
// lifecycleAdditionalContextData: {contextDataKey: 'contextDataValue'},
};
try {
MobileCore.setLogLevel(LogLevel.VERBOSE);
// MobileCore.initializeWithAppId(appId);
MobileCore.initialize(initOptions)
.then(() => {
console.log('AdobeExperienceSDK: AEP SDK Initialized');
})
.catch(error => {
crashlyticsLog(
'AdobeExperienceSDK: AEP SDK Initialization error:',
error,
);
});
this.updatePrivacyStatusForAdobeCore(true);
const consents: {[keys: string]: unknown} = {
consents: {collect: {val: 'y'}},
};
Consent.update(consents);
Edge.getLocationHint().then(hint =>
console.log('AdobeExperienceSDK: location hint = ' + hint),
);
Identity.extensionVersion().then(version =>
console.log('AdobeExperienceSDK: Identity version: ' + version),
);
Identity.getUrlVariables().then(urlVariables =>
console.log('AdobeExperienceSDK: UrlVariables = ' + urlVariables),
);
Identity.getIdentifiers().then(identifiers =>
console.log('AdobeExperienceSDK: Identifiers = ' + identifiers),
);
Identity.getExperienceCloudId().then(cloudId => {
console.log('AdobeExperienceSDK: CloudID = ' + cloudId);
});
Assurance.extensionVersion().then(e => {
console.log('Adobe Assurance Started: version ', e);
});
Assurance.startSession(
'https://tractorsupply.com?adb_validation_sessionid=e81ccf69-39a6-4fcb-972f-d1fab5f5a95e',
);
} catch (error) {
crashlyticsLog(
'AdobeExperienceSDK: setIntialConfig function error:',
error,
);
}
}
}
`
Please let me know if I am missing anything else or what am I doing wrong in this ?
Also, MobileCore.initialize(initOptions) is returning me a successful log.
And I tried to find logs in logcat and I found this. Might help you out to find the root cause of this issue.
2025-03-29 04:10:09.359 31238-31634 AdobeExperienceSDK com.fieldrepapp_v1 D MobileCore/EventHub - Created pending STANDARD shared state for extension "com.adobe.module.configuration" with version 66 2025-03-29 04:10:09.359 31238-1143 AdobeExperienceSDK com.fieldrepapp_v1 D Identity/IdentityExtension - Cannot sync identifiers, waiting for configuration with valid 'experienceCloud.org' value. 2025-03-29 04:10:09.360 31238-1139 AdobeExperienceSDK com.fieldrepapp_v1 D EdgeIdentity/IdentityState - On bootup direct Identity extension is registered, waiting for its state change. 2025-03-29 04:10:09.365 31238-1176 AdobeExperienceSDK com.fieldrepapp_v1 D Services/HttpConnectionHandler - Connecting to URL https://assets.adobedtm.com/913fc44e579c/54197e3a65d7/launch-4073a728cfe9-development.json (GET) 2025-03-29 04:10:09.380 31238-1176 AdobeExperienceSDK com.fieldrepapp_v1 D Configuration/ConfigurationDownloader - Download result :404 2025-03-29 04:10:09.380 31238-1176 AdobeExperienceSDK com.fieldrepapp_v1 W Services/HttpConnection - Could not get the input stream. (java.io.FileNotFoundException: https://assets.adobedtm.com/913fc44e579c/54197e3a65d7/launch-4073a728cfe9-development.json) 2025-03-29 04:10:09.380 31238-1176 AdobeExperienceSDK com.fieldrepapp_v1 V Configuration/Configuration - Failed to download configuration. Applying Will retry download. 2025-03-29 04:10:09.381 31238-31634 AdobeExperienceSDK com.fieldrepapp_v1 D MobileCore/EventHub - Resolved pending STANDARD shared state for "com.adobe.module.configuration" and version 66 with data { "global.privacy": "optedin" } 2025-03-29 04:10:09.381 31238-31634 AdobeExperienceSDK com.fieldrepapp_v1 D MobileCore/EventHub - Dispatching Event #67 - ({ class: Event, name: Shared state change, uniqueIdentifier: c8a3954e-e1ea-4f80-84f5-4778226ba05e, source: com.adobe.eventSource.sharedState, type: com.adobe.eventType.hub, responseId: null, parentId: null, timestamp: 1743201609381, data: { "stateowner": "com.adobe.module.configuration" }, mask: null, })
D Identity/IdentityExtension - Cannot sync identifiers, waiting for configuration with valid 'experienceCloud.org' value.
