AEPTarget helps test, personalize, and optimize mobile app experiences based on user behavior and mobile context. You can deliver interactions that engage and convert through iterative testing and rules-based and AI-powered personalization.
# Podfile use_frameworks! # for app development, include all the following pods target 'YOUR_TARGET_NAME' do pod 'AEPTarget' pod 'AEPCore' end
To add the AEPTarget Package to your application, from the Xcode menu select:
File > Swift Packages > Add Package Dependency...
Enter the URL for the AEPTarget package repository:
When prompted, specify the Version rule using a specific version range or an exact version.
Alternatively, if your project has a
Package.swift file, you can add AEPTarget directly to your dependencies:
dependencies: [ .package(url: "https://github.com/adobe/aepsdk-target-ios.git", .upToNextMajor(from: "3.3.0")), ], targets: [ .target(name: "YourTarget", dependencies: ["AEPTarget"], path: "your/path") ]
Run the following command, from the project root directory, to generate the
AEPTarget.xcframework in the
build directory. But, first run
make pod-install command to ensure the dependencies are installed.
The first time you clone or download the project, you should run the following from the root directory to setup the environment:
Subsequently, you can make sure your environment is updated by running the following:
Open the workspace in Xcode by running the following command from the root directory of the repository:
You can run all the test suites from command line:
Additional documentation for API usage can be found under the Documentation directory.
Contributions are welcomed! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.
|Last commit: 5 days ago|
Added getter and setter APIs for Target tnt ID and Target session ID to enable cross-channel sessions. (#118) @swarna04
The setSessionId API should be invoked prior to any Target request to prevent the Mobile SDK from generating a session ID locally. The session ID will follow the session expiry as governed by the target.sessionTimeout configuration setting. You can use this API in conjunction with setTntId API to set both of the value in the SDK.
The setTntId API, when invoked, also sets the Target edge host value in the SDK by deriving it from the profile location hint supplied in the tnt ID.
The getSessionId and getTntId APIs can be used to retrieve the current Target session ID and tnt ID values respectively.