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

What is the alternative for ACPAnalytics.sendQueuedHits() in AEP packages? #268

Closed ShehanAmarakoon closed 1 year ago

ShehanAmarakoon commented 1 year ago

Expected Behaviour

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

cdhoffmann commented 1 year ago

@ShehanAmarakoon Hey there. There is no AEPAnalytics ReactNative wrapper at this time. Please reference our documentation here for a list of currently supported React Native packages.

ShehanAmarakoon commented 1 year ago

Thanks for the information.

I upgraded the ACP to AEP packages. But cannot see any hits on the AA dashboard for both iOS and Android. All the IDs are correct and I can see the SDK initialize correctly.

ACP works fine with the same IDs.

// Previous Code

ACPCore.updateConfiguration({
      'analytics.server': ADOBE_ANALYTICS.SERVER,
      'analytics.rsids': ADOBE_ANALYTICS.RSIDS,
      'analytics.batchLimit': 10,
      'analytics.offlineEnabled': false,
    });
ACPAnalytics.sendQueuedHits();

// AEP Upgrade

MobileCore.updateConfiguration({
      'analytics.server': ADOBE_ANALYTICS.SERVER,
      'analytics.rsids': ADOBE_ANALYTICS.RSIDS,
      'analytics.batchLimit': 10,
      'analytics.offlineEnabled': false,
    });
  // ACPAnalytics.sendQueuedHits(); - no wrapper yet for AEP

Can you help me on this?

cdhoffmann commented 1 year ago

@ShehanAmarakoon Please refer to our migration guide here: https://github.com/adobe/aepsdk-react-native/blob/main/docs/migration.md

You can use the Edge Network path with Analytics.