adobe / aepsdk-react-native

A wrapper around the iOS and Android AEP mobile SDK to allow for integration with React Native applications.
Apache License 2.0
15 stars 28 forks source link

Unable to process event #384

Open karimkhamwani opened 14 hours ago

karimkhamwani commented 14 hours ago

Prerequisites

Bug summary

Hi guys, I'm facing this error while firing the event using MobileCore.trackState

MobileCore.trackAction(pageName, { 'appname': 'LTSAE Milestone Tracker', });

Unable to process the event 'E393DC5D-1159-43B0-B3F3-842E2AFA5BB4', configuration 'edge.configId' is missing or empty.

I can see the payload going through

Dispatching Event #Optional(45) - [ id: E393DC5D-1159-43B0-B3F3-842E2AFA5BB4 name: Edge Bridge Request type: com.adobe.eventType.edge source: com.adobe.eventSource.requestContent data: { "data" : { "__adobe" : { "analytics" : { "contextData" : { 'appname': 'LTSAE Milestone Tracker', }, "linkType" : "other", "cp" : "foreground", "linkName" : "Home" } } }, "xdm" : { "timestamp" : "2024-09-19T20:59:19.277Z", "eventType" : "analytics.track" }

SDK setup

[AEPMobileCore registerExtensions:@[ AEPMobileLifecycle.class, AEPMobileSignal.class, AEPMobileEdge.class, AEPMobileEdgeIdentity.class, AEPMobileUserProfile.class, AEPMobileEdgeBridge.class, ] completion:^{ if (appState != UIApplicationStateBackground) { NSLog(@"App is not in the background, configuring AEP Mobile Core."); [AEPMobileCore configureWithAppId: ENVIRONMENT_FILE_ID]; [AEPMobileCore lifecycleStart:nil]; } }];

Environment

System: OS: macOS 14.4.1 CPU: (8) x64 Apple M1 Memory: 54.67 MB / 16.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.0.0 path: ~/.nvm/versions/node/v18.0.0/bin/node Yarn: version: 1.22.19 path: ~/.nvm/versions/node/v18.0.0/bin/yarn npm: version: 8.6.0 path: ~/.nvm/versions/node/v18.0.0/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.15.2 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

Steps to reproduce

No response

Current behavior

No response

Expected behavior

No response

Anything else?

No response

cacheung commented 14 hours ago

This error "configuration 'edge.configId' is missing or empty" could be caused by not having a proper configuration setup in the Tags. Do you have Edge Extension installed and datastream setup properly in the mobile property tag? https://developer.adobe.com/client-sdks/edge/edge-network/#configure-the-edge-network-extension-in-data-collection-ui

The ENVIRONMENT_FILE_ID is published with these configuration info. [AEPMobileCore configureWithAppId: ENVIRONMENT_FILE_ID];

karimkhamwani commented 11 hours ago

Thanks, I don't have extension installed or datastream setup, will do and see