LifecycleStart
API. Session data is persisted, so it is available across application launches.Podfile
:Podfile
:ACPCore
also imports the necessary Lifecycle APIs:onResume
function, start the lifecycle data collection:setApplication
in each of your activities.onPause
function, pause the lifecycle data collection:application:didFinishLaunchingWithOptions:
delegate method. This will register the extension with Core and begin Lifecycle event processing:lifecycleStart:
from within the callback of the MobileCore.registerExtensions
method in your app's application:didFinishLaunchingWithOptions:
delegate method.application:didFinishLaunchingWithOptions:
method might be called when iOS launches your app in the background. If you do not want background launches to count towards your lifecycle metrics, then lifecycleStart:
should only be called when the application state is not equal to UIApplicationStateBackground
.applicationWillEnterForeground:
delegate method. You also need to call lifecycleStart:
, but this time you do not need all of the supporting code that you used in application:didFinishLaunchingWithOptions:
:UISceneDelegate
's sceneWillEnterForeground
method as follows:applicationDidEnterBackground:
delegate method:UISceneDelegate
's sceneDidEnterBackground
method as follows:application:didFinishLaunchingWithOptions:
delegate method. This will register the extension with Core and begin Lifecycle event processing:lifecycleStart:
from within the callback of the AEPMobileCore::registerExtensions:
method in your app's application:didFinishLaunchingWithOptions:
delegate method.application:didFinishLaunchingWithOptions:
method might be called when iOS launches your app in the background. If you do not want background launches to count towards your lifecycle metrics, then lifecycleStart:
should only be called when the application state is not equal to UIApplicationStateBackground
.applicationWillEnterForeground:
delegate method. You also need to call lifecycleStart:
, but this time you do not need all of the supporting code that you used in application:didFinishLaunchingWithOptions:
:UISceneDelegate
's sceneWillEnterForeground
method as follows:applicationDidEnterBackground:
delegate method:UISceneDelegate
's sceneDidEnterBackground
method as follows:application:didFinishLaunchingWithOptions:
delegate method:lifecycleStart:
from within the callback of the ACPCore::start:
method in your app's application:didFinishLaunchingWithOptions:
delegate method.application:didFinishLaunchingWithOptions:
method might be called when iOS launches your app in the background. If you do not want background launches to count towards your lifecycle metrics, then lifecycleStart:
should only be called when the application state is not equal to UIApplicationStateBackground
.applicationWillEnterForeground:
delegate method. You also need to call lifecycleStart:
, but this time you do not need all of the supporting code that you used in application:didFinishLaunchingWithOptions:
:UISceneDelegate
's sceneWillEnterForeground
method as follows:applicationDidEnterBackground:
delegate method:UISceneDelegate
's sceneDidEnterBackground
method as follows:application:didFinishLaunchingWithOptions:
delegate method:lifecycleStart:
from within the callback of the ACPCore::start:
method in your app's application:didFinishLaunchingWithOptions:
delegate method.application:didFinishLaunchingWithOptions:
method might be called when iOS launches your app in the background. If you do not want background launches to count towards your lifecycle metrics, then lifecycleStart:
should only be called when the application state is not equal to UIApplicationStateBackground
.applicationWillEnterForeground:
delegate method. You also need to call lifecycleStart:
, but this time you do not need all of the supporting code that you used in application:didFinishLaunchingWithOptions:
:UISceneDelegate
's sceneWillEnterForeground
method as follows:applicationDidEnterBackground:
delegate method:UISceneDelegate
's sceneDidEnterBackground
method as follows:FinishedLaunching:
delegate method:LifecycleStart:
from within the callback of the ACPCore::start:
method in your app's FinishedLaunching:
delegate method.FinishedLaunching:
method might be called when iOS launches your app in the background. If you do not want background launches to count towards your lifecycle metrics, then LifecycleStart:
should only be called when the application state is not equal to UIApplicationState.Background
.WillEnterForeground:
delegate method. You also need to call LifecycleStart:
, but this time you do not need all of the supporting code that you used in FinishedLaunching:
:DidEnterBackground:
delegate method:onResume
function, start the lifecycle data collection:ACPCore.Application = this.Application;
) in each of your activities.onPause
function, pause the lifecycle data collection:a.AppID
AppName BundleVersion (app version code)
. An example of this format is MyAppName 1.1(1)
.a.DeviceName
a.OSVersion
a.CarrierName
a.Resolution
a.locale
a.InstallEvent
a.InstallDate
M/d/yyyy
, and an example is 5/3/2017
.a.UpgradeEvent
a.LaunchesSinceUpgrade
a.DaysSinceLastUpgrade
a.DailyEngUserEvent
a.MonthlyEngUserEvent
a.LaunchEvent
a.PrevSessionLength
a.ignoredSessionLength
lifecycle.sessionTimeout
, that session length is ignored and recorded here.a.Launches
a.DaysSinceFirstUse
a.DaysSinceLastUse
a.HourOfDay
a.DayOfWeek
a.CrashEvent
a.AppID
AppName BundleVersion (app version code)
format. An example of this format is MyAppName 1.1(1)
.a.DeviceName
a.OSVersion
a.CarrierName
a.Resolution
a.Locale
lifecycle.sessionTimeout