DECISION listener notification.
Release of Swift SDK 3.1.0 Beta
The Optimizely X iOS Swift SDK 3.1.0-beta is written completely in Swift and uses all of its native types and patterns. By taking full advantage of the Swift language, it is safer, faster, and more compact compared to the 3.0.x and earlier Optimizely iOS SDKs, which are written in Objective-C.
Have feedback about our new beta? Let our team know on Github.
Learn about how to download your datafile automatically using sdkKey here.
Decision Notification Listener
Notification listeners trigger a callback function of your choice when certain actions are triggered in the SDK. The most common use case is to build custom analytics integrations that forward impressions and conversion events on to other systems.
We added information for the new 3.1.x
DECISION notification listener to Register notification listeners that replaces the
ACTIVATE listener. The
DECISION listener triggers a callback with the decision type, associated decision information, user ID, and attributes and integrates with the Activate, Get Enabled Features, Get Feature Variable, or Is Feature Enabled APIs.
Use this notification listener to focus on the experiment information that you need, such as:
- When the system activates a user in an experiment.
- When the system determines a user’s access to a feature or a variable value for a user.
Breaking Change: The
ACTIVATEnotification listener is deprecated in Full Stack SDKs 3.1.x and later. You must use the
If you have suggestions for our platform, contact us on Github. We want to hear about what you’re building and how we can help!