ADBMobile.collectLifecycleData(withAdditionalData: ) in the AEP. | Community
Skip to main content
February 23, 2021
Solved

ADBMobile.collectLifecycleData(withAdditionalData: ) in the AEP.

  • February 23, 2021
  • 1 reply
  • 1535 views

Hi guys,

 

I'm migrating my iOS app from the Adobe Analytics to the Adobe Experience Platform.

Previously I used ADBMobile.collectLifecycleData(withAdditionalData: ) to provide some additional data. Which API should I use to achieve the same result in the AEP?

I see there is the ACPCore.lifecycleStart(data) which I'm calling in the beginning when I'm initializing the library. But what if I need to provide additional data later on?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kevin_Lind

Hi @aetsyss-1 

 

ACPCore.lifecycleStart(data) is the correct API to use when migrating from ADBMobile.collectLifecycleData(withAdditionalData:). Here's the documentation which lists the API changes between the Experience Platform SDKs and 4x SDKs, https://aep-sdks.gitbook.io/docs/api-change-log#lifecycle-extension-apis.  Also, here's the documentation for lifecycleStart(data), https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/lifecycle/lifecycle-extension-in-ios#collecting-additional-data-with-lifecycle

 

I would also encourage you to look at using our latest mobile SDK for iOS written in Swift, if you are not already. If you are planning on sending data to the AEP Edge Network, you will need to use the AEP Core SDK with the AEP Edge extension. https://aep-sdks.gitbook.io/docs/v/AEP-Edge-Docs/getting-started/get-the-sdk#swift-objective-c

 

Thanks,

Kevin Lind

1 reply

Kevin_LindAdobe EmployeeAccepted solution
Adobe Employee
February 23, 2021

Hi @aetsyss-1 

 

ACPCore.lifecycleStart(data) is the correct API to use when migrating from ADBMobile.collectLifecycleData(withAdditionalData:). Here's the documentation which lists the API changes between the Experience Platform SDKs and 4x SDKs, https://aep-sdks.gitbook.io/docs/api-change-log#lifecycle-extension-apis.  Also, here's the documentation for lifecycleStart(data), https://aep-sdks.gitbook.io/docs/using-mobile-extensions/mobile-core/lifecycle/lifecycle-extension-in-ios#collecting-additional-data-with-lifecycle

 

I would also encourage you to look at using our latest mobile SDK for iOS written in Swift, if you are not already. If you are planning on sending data to the AEP Edge Network, you will need to use the AEP Core SDK with the AEP Edge extension. https://aep-sdks.gitbook.io/docs/v/AEP-Edge-Docs/getting-started/get-the-sdk#swift-objective-c

 

Thanks,

Kevin Lind

aetsyss-1Author
February 23, 2021
Got it, thanks!