Expand my Community achievements bar.

After changing the privacy optedin status it does not mark lifecycle iOS


Level 1

Hello, I am implementing the lifecycles in a hybrid architecture iOS application, when the user accepts the tracking and I modify the privacy status to optedin, the lifecycle is launched through this code:


                                ACPCore.start {

                                       // only start lifecycle if the application is not in the background

                                    if UIApplication.shared.applicationState != .background {





But the lifecycle evento not launch when inspect with Charles, it is only launched after opening the application having closed at least 5 minutes.


This versions are using:


pod 'ACPCore', '2.9.1'
pod 'ACPAnalytics', '2.5.0'


In addition, the following error is thrown in the logs:



2021-09-27 13:38:29.311935+0200 GNC[8313:1047920] [AdobeExperienceSDK TRACE <EventHub(AMSEventHub)>]: Event #35 (com.adobe.eventType.identity) resulted in 0 consequence events. Time in rules was 0 milliseconds.
2021-09-27 13:38:29.312615+0200 GNC[8313:1047924] [AdobeExperienceSDK TRACE <EventHub(AMSEventHub)>]: Processing Event #36 - {
source: "com.adobe.eventSource.sharedState",
type: "com.adobe.eventType.hub",
"stateowner" : "com.adobe.module.identity"
2021-09-27 13:38:29.312844+0200 GNC[8313:1047924] [AdobeExperienceSDK TRACE <EventHub(AMSEventHub)>]: Event #36 (com.adobe.eventType.hub) resulted in 0 consequence events. Time in rules was 0 milliseconds.
2021-09-27 13:38:29.313142+0200 GNC[8313:1047929] [AdobeExperienceSDK TRACE <com.adobe.module.configuration>]: Processing get SDK ids event
2021-09-27 13:38:29.313214+0200 GNC[8313:1047930] [AdobeExperienceSDK TRACE <com.adobe.module.analytics>]: Hear - Submitting Shared State update event for processing.
2021-09-27 13:38:30.078580+0200 GNC[8313:1047920] [AdobeExperienceSDK DEBUG <com.adobe.module.analytics>]: WaitForLifecycleData - Lifecycle timeout has expired without lifecycle data.
2021-09-27 13:38:30.078920+0200 GNC[8313:1047920] [AdobeExperienceSDK DEBUG <Analytic**bleep**Database>]: Kick - Failed to kick database hits (Analytics state is null).



I do not understand what is happening, is this behavior normal? on Android it launches instantly.


1 Reply


Community Advisor

@fallel this looks like a Lifecycle question and not AEP specific question.


Please post on https://experienceleaguecommunities.adobe.com/t5/adobe-livecycle/ct-p/adobe-livecycle-community