Segment-Adjust 3.1.1

Segment-Adjust 3.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2021

Maintained by Peter Reinhardt, Ladan Azita Nasserian, Prateek Srivastava, Segment, Brennan Gamwell, Brandon Sneed, Brienne McNally, Cody Garvin, Kevin Niparko.



 
Depends on:
Analytics>= 0
Adjust~> 4.28
 

Analytics

CircleCI Version License

Adjust integration for analytics-ios.

Installation

To install the Segment-Adjust integration, simply add this line to your CocoaPods Podfile:

pod "Segment-Adjust"

Usage

After adding the dependency, you must register the integration with our SDK. To do this, import the Adjust integration in your AppDelegate:

#import <Segment-Adjust/SEGAdjustIntegrationFactory.h>

And add the following lines:

NSString *const SEGMENT_WRITE_KEY = @" ... ";
SEGAnalyticsConfiguration *config = [SEGAnalyticsConfiguration configurationWithWriteKey:SEGMENT_WRITE_KEY];

[config use:[SEGAdjustIntegrationFactory instance]];

[SEGAnalytics setupWithConfiguration:config];

IDFA tracking for iOS14

  1. Add the AppTrackingTransparency.framework - This framework is needed in iOS 14 and later for SDK to be able to wrap user's tracking consent dialog and access to value of the user's consent to be tracked or not.
  2. Add "Privacy - Tracking Usage Description" to your app Info.plist with a string indicating your intentions for tracking a user's IDFA.
  3. Implement the Adjust SDK App-tracking authorization wrapper, to conveniently and efficiently communicate the new state of consent to the backend. As soon as a user responds to the pop-up dialog, it's then communicated back using your callback method. The SDK will also inform the backend of the user's choice.
Adjust.requestTrackingAuthorizationWithCompletionHandler().then((status) {
  switch (status) {
    case 0:
      // ATTrackingManagerAuthorizationStatusNotDetermined case
      break;
    case 1:
      // ATTrackingManagerAuthorizationStatusRestricted case
      break;
    case 2:
      // ATTrackingManagerAuthorizationStatusDenied case
      break;
    case 3:
      // ATTrackingManagerAuthorizationStatusAuthorized case
      break;
  }
});
  1. Allow Segment to collect the IDFA by implement the adSupportBlock as documented in Segment IDFA Collection documentation.

License

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|

The MIT License (MIT)

Copyright (c) 2016 Segment, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.