- Fix Pull IDFA if it has changed and rebuild context if necessary.
- Fix Support Data Residency.
- Fix Added static lib support for Cocoapods.
- Fix Standarized all SDK versions between dependency managers. Migrated to importing modules vs headers. Removed all linked frameworks.
- Fix Fixed missing userId in traits.
- Fix Fixed an issue with NSCopying preceding SEGSerialization.
- Fix Output log messages when events are trimmed from the queue.
- Fix Added category option to screen calls.
- Fix Fixed example projects using old branch for SPM.
- Fix Repaired mac example project.
- [Fix] Fixed carthage support for main library and destinations.
- New Added Webhook Integration.
- New Renamed module from
Analytics
toSegment
. - Fix Removed unused mobile attribution.
- New Added ability for customer to make their types serializable.
- New Added necessary changes for Edge Functions.
- Fix Fixed issue where non-serializable types would get into payload.
- Fix Fixed double device payload.
- New Deprecated configuration access and updated associated tests.
- Fix Disregard payloads that fail conversion from plist to json.
- New Added Swift and Carthage badging.
- New Added MacOS support.
- Fix Fixed SEGLog permissions.
- Fix Adopted Swift 5 syntax in tests. Removed SwiftTryCatch dependency for tests. Fixed deadlock from #916.
- Fix Fixed an issue with old traits overwriting new traits.
- New Added full example flow with Swift Package Manager compatibility.
- Fix Fix SwiftUI previews in macOS Catalyst builds.
- New Separate public utils from private utils appropriately.
- New Payload Info & Traits Fixes.
- New Updated SPM for code coverage compatibility.
- New Removed Quick and Nimble, updated unit tests.
- New Added global state management; Middleware now receive all context data.
- New change logic for screen naming conventions.
- New Fixed crash on UISceneDelegate applications.
- New Renamed middleware methods to match a.js naming.
- New Added Swift Package Manager support.
- New Updated class names for Swift.
- New Makes IDFA support externally/customer driven.
- New Added integration middleware functionality.
- New Backport defaultSettings feature from 4.x to 3.x.
- Fix Automatic Screen Tracking with consistent naming conventions
- Fix Adds check to make sure cached settings aren't empty before being used.
- Fix Fixed a crash in the file storage.
- Fix Adds back erroneously removed build/version data from App Opened event.
- Fix Pushlishes filenames use for storage.
- Fix Fixes incorrect naming in screen reporting.
- Promoting 3.8.x series to stable release. This includes all changes since 3.7.
- Fix Implement maximum batch request size.
- Fix Move SEGQueue from UserDefaults to caches directory.
- Fix Fix issues around plist->json conversion and nil values.
- Fix Expect dictionary as well as bool for integration enablement.
- Fix Differences observed in how iOS/android pass userId/anonId; Corrected.
- Fix Look at previously cached settings before blowing them away.
- Fix Added experimental feature to enable nanosecond granularity on timestamps.
- Fix Reload static context data when the app returns from background.
- Fix Fixes issue where customers can overwrite information regarding integration enablement.
- Fix Swapped JSON in for the storage format instead of plists.
- Fix Hardened handling of user-supplied data in event properties.
- New Added support for SSL pinning.
- Fix CoreTelephony library is now only included on iOS targets.
- New: Add iOS Backgrounded Event.
- Fix: Fix GCD mutual dependency
- Fix: adding “name” field to payload; updated nimble to version 7.3.4
This release promotes 3.7.0-beta.4 to stable.
- Fix: Remove invalid
.clang-format
symlink which can cause issues with manual builds. - Fix: Collect
context.device.type
asios
. - Fix: Fix Xcode warning.
- Fix: Add deep links redaction
- Fix: Add deep links redaction
- Fix: Remove -beta suffix from CFBundleShortVersionString
-
Improvement: Make the maximum queue size configurable
-
Improvement: Make the flush interval configurable
-
Fix: Fix linking issues when automatic framework linking is disabled
-
Fix: Retry HTTP 429 status codes
-
Fix: Send RFC 7231 Formatted User Agent
-
Fix: Ensure queue is always < 1000 items
-
Fix: Reset SEGUserIdKey only on tvOS
-
Fix: Renames GZIP category to prevent collisions
-
Fix: sharedAnalytics returns null before setup
-
Fix: Swift 4 support
- Fix: Reverts ability to run connection factories asynchronously. This fixes a bug in 3.6.9 that caused the library to not send events to the Segment API.
This version included a bug that caused the library to not send events to the Segment API. We recommend using version 3.6.9
which fixes this bug and includes all the other improvements available in this release.
- Fix: Fixes some compiler warnings seen when importing analytics-ios via Swift in a Carthage project.
- Fix: Fix crash when trying to get screen name in some cases.
- New: Support schema defaults.
- New: Send disabled events to Segment so they can be surfaced in the debugger. This won't be sent to any destinations.
- Fix: Fix date formatting to be RFC 3339 compliant.
- Fix: Always deliver events asynchronously to integrations.
* Improvement: Run connection factory asynchronously so it doesn't block queuing events.
- Use DEBUG preprocessor flag to conditionally disable assertions in prod #711
- Update Info.plist version with library version. Add Makefile for building dynamic framework via Carthage. Explicitly distributing frameworks for installation outside of dependency managers.
- Default to empty values rather than
NSNull
for automatically tracked events #706 - Fix events not persisting to disk when
NSNull
values are sent by removing keys containingNSNull
values from events #707- Note this will remove
NSNull
values from dictionaries and arrays, modifying the tracked data
- Note this will remove
- Add workaround for UIApplication type mismatch with Swift mapping. #704
- Fix NSURLSession being prematurely invalidated (#702)
- Remove canceling ongoing requests in reset method. (#691)
- Extract UIApplication to permit linkage with iOS extensions. (#698)
- Add missing includes to umbrella header (#696)
- Reuse NSURLSession in SEGHTTPCLient (#699)
- Pass through userInfo when posting NSNotification
- Fix
Application Updated
event #685 - Fix
Application Opened
event #675 - Fire during applicationWillEnterForeground, not just applicationDidFinishLaunching
- Adding from_background, referring_application and url to Application Opened event
- Add [session finishTasksAndInvalidate] to SEGHTTPClient.m to prevent memory leak #679
- Use a separate queue for endBackgroundTask to fix deadlock (#684)
- Exposing SEGMiddleware and SEGContext header publicly
- Removing deprecated APIs
- Adding several test suites - reaching 70% coverage
- Promoting
3.6.0-rc
to stable release3.6.0
after sufficient time and exposure in pre-release.
- Publicly exposing the middleware API, allowing custom middlewares to be inserted into the chain
- Added
SEGBlockMiddleware
helper to make it easier to create middleware out of anonymous functions
- Major refactor laying the groundwork for a new middleware based architecture that will enable a whole new class of capabilities for analytics-ios
- Fix: Fix issue where calling
[analytics continueUserActivity:activity]
would cause events in the application session to be dropped. Events from prior and future sessions will be unaffected.
- Fix: Fall back to using Segment integration when we cannot get settings.
- Update cdn hostname from cdn.segment.com to cdn-settings.segment.com
- Fix: Fixed regression introduced in 3.5.0 that would generate a new anonymousId on every app launch.
-
Not a recommended version. Regression introduced in 3.5.0 will generate a new anonymousId on every app launch.
-
Fix: Removed automatic bluetooth and location info collection to workaround app submission issues.
-
Not a recommended version. Regression introduced in 3.5.0 will generate a new anonymousId on every app launch.
-
New: Adds a
SEGCrypto
API that can be used to configure the at rest encryption strategy for the client.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
// Set a custom crypto implementation. An AES-256 implementation is provided out of the box.
configuration.crypto = [SEGAES256Crypto initWithPassword:"YOUR_PRIVATE_PASSWORD"];
// Set any other custom configuration options.
...
// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
- New: Add the ability for the SDK to natively report attribution information via Segment integrations enabled for your project, without needing to bundle their SDKs. Attribution information is sent as a track call as documented in the mobile lifecycle spec.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
// Enable attribution tracking.
configuration.trackAttributionData = @YES;
// Set any other custom configuration options.
...
// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
- New: Add the ability for the SDK to disable bluetooth collection. Going forwards, bluetooth information will not be collected by default. This is because iOS 10 requires explicit documentation on why the CoreBluetooth APIs are accessed. If you enable this flag, your app's Info.plist must contain an
NSBluetoothPeripheralUsageDescription
key with a string value explaining to the user how the app uses this data. On this note, you should do the same forNSLocationAlwaysUsageDescription
if you haveshouldUseLocationServices
set to@YES
. If you are linking against iOS 10, you'll want to update to this version to prevent your app submission from being rejected (or provideNSBluetoothPeripheralUsageDescription
and/orNSLocationAlwaysUsageDescription
descriptions in your app's Info.plist).
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
// Enable bluetooth collection.
configuration.shouldUseBluetooth = @YES;
// Set any other custom configuration options.
...
// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
- New: Adds a
SEGRequestFactory
API that can be used to configure the HTTP requests made by Segment.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
// Set a custom request factory which allows you to modify the way the library creates an HTTP request.
// In this case, we're transforming the URL to point to our own custom non-Segment host.
configuration.requestFactory = ^(NSURL *url) {
NSURLComponents \*components = [NSURLComponents componentsWithURL:url resolvingAgainstBaseURL:NO];
// Replace YOUR_PROXY_HOST with the address of your proxy, e.g. aba64da6.ngrok.io.
components.host = @"YOUR_PROXY_HOST";
NSURL \*transformedURL = components.URL;
return [NSMutableURLRequest requestWithURL:transformedURL];
};
// Set any other custom configuration options.
...
// Initialize the SDK with the configuration.
[SEGAnalytics setupWithConfiguration:configuration]
- New: Add method to retrieve anonymous ID.
[[SEGAnalytics sharedAnalytics] getAnonymousId];
-
Improvement: Store
context
object with every event. This makes it more accurate collecting the context at the time the event was observed, rather than uploaded. -
Improvement: Automatic screen tracking improvements, specifically in the case when the root view is a
UINavigationController
. -
Improvement: Don't send
Segment.io: false
in integration dictionary. -
Improvement: Friendly assert messages.
-
Fix: Namespace GZIP extension to avoid conflicts.
-
Fix: Fix assertion in
identify
method. -
Fix: Static analyzer warnings for reachability implementation.
-
Fix: Handle case where screen name is empty.
- New: Add Carthage support.
- Fix: Flush timer behaviour. Previously it was not being invoked periodically as expected.
- New: Automatically track campaign data.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackPushNotifications = YES;
[SEGAnalytics setupWithConfiguration:configuration];
- New: Automatically track deep links. Please note that you'll still need to call the
continueUserActivity
andopenURL
methods on the analytics client.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackDeepLinks = YES;
[SEGAnalytics setupWithConfiguration:configuration];
- Improvement: Limit queue size to 1000. This will prevent crashes/memory issues from the queue being too large.
- Fix: Replace Foundation import with UIKit import.
- Improvement: Exclude cache files from backup.
- New: Add tvOS support.
- New: Update context object with referrer information.
- Improvement: Handle case when root view is a navigation controller.
- Improvement: More user friendly assert messages.
- New: Add method to retrieve anonymousID.
- New: Carthage support.
- Fix: Case when ViewController title is an empty string.
- Improvement: Fixes the following static analyzer warnings.
SEGReachability.m:115:9: Potential leak of an object stored into 'ref'
SEGReachability.m:131:9: Potential leak of an object stored into 'ref'
- Fix: Correctly skip sending events for disabled events in the tracking plan.
- Fix: Handle case when ViewController is named simply "ViewController".
- Fix: Handle case when ViewController is named simply "ViewController".
- Fix: Namespace NSData GZIP extension methods to avoid conflicts.
- Fix: Build and version were reversed in automatic application lifecycle tracking.
- Instrument automatic in app purchase tracking. Enable this during initialization.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackInAppPurchases = YES;
[SEGAnalytics setupWithConfiguration:configuration];
- Improvement: gzip http request body.
- Fix: Implement workaround for CTTelephonyNetworkInfo bug.
- Fix potential duplication of events in queue when there are events queued in NSUserDefaults and on disk.
- Analytics-iOS Core SDK now includes support for iOS 7.0+ (Previously 8.0+). Bundled integrations may have different OS version requirements, please check the specific integration you use for details.
- Store event queue and traits to disk instead of NSUserDefaults. We will check for queue/traits in NSUserDefaults and copy to disk if they exist.
- Instrument automatic screen view tracking. Enable this during initialization.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.recordScreenViews = YES;
[SEGAnalytics setupWithConfiguration:configuration];
- Instrument automatic application lifecycle event tracking. Enable this during initialization.
SEGAnalyticsConfiguration *configuration = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
configuration.trackApplicationLifecycleEvents = YES;
[SEGAnalytics setupWithConfiguration:configuration];
- Make
SEGAnalyticsIntegrationDidStart
public (use this to be notified when an integration is initialized). - Fixed crashes due to NSNotificationCenter observers not being removed.
- Make
initWithConfiguration
public.
- Fix crash with forwarding notification info to integrations.
- Fix crash with using NSUserDefaults.
- Fix issue with location updates.
- Forward notification info to integrations.
- Use NSUserDefaults for persistence where possible.
- Fix how we detect whether the device is offline or not.
- Correctly send
context.library.version
.
- Deliver application lifecycle and push events synchronously to integrations when possible.
- Add ability to set a custom anonymous ID.
- Fix bug with overriding
userId
in alias calls (this bug would manifest when trying to alias anonymous users).
- v3 Release. This release restructures bundled integrations, which requires a few additional steps.
Add the integration dependencies.
pod `Segment`
pod `Segment-Bugsnag`
pod `Segment-Branch`
...
Register them in your configuration when you initialize the SDK.
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:@"YOUR_WRITE_KEY"];
// Add any of your bundled integrations.
config use:[SEGGoogleAnalyticsIntegrationFactory instance];
config use:[BNCBranchIntegrationFactory instance];
...
[SEGAnalytics setupWithConfiguration:config];
- Adds API to track notification lifecycle.
- Fixes bug where traits in identify and group were ignored.
- Fixes
pod lib lint
warnings.