Git Product home page Git Product logo

rudder-integration-appsflyer-ios's Introduction

What is RudderStack?

RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.

More information on RudderStack can be found here.

Integrating AppsFlyer with RudderStack's iOS SDK

  1. Add Appsflyer as a destination in the Dashboard and provide devKey and appleAppId from your iTunes profile.

  2. Rudder-Appsflyer is available through CocoaPods and Swift Package Manager (SPM).

CocoaPods

pod 'Rudder-Appsflyer'

Swift Package Manager (SPM)

You can also add the RudderStack iOS SDK via Swift Package Mangaer, via one of the following two ways:

Xcode

  • Go to File - Add Package, as shown:

Adding a package

  • Enter the package repository ([email protected]/rudderlabs/rudder-integration-appsflyer-ios.git) in the search bar.

  • In Dependency Rule, select Up to Next Major Version and enter 2.7.0 as the value, as shown:

Setting dependency

  • Select the project to which you want to add the package.

  • Finally, click on Add Package.

Swift

To leverage package.swift, use the following snippet in your project:

// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Rudder-Appsflyer",
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(
            name: "Rudder-Appsflyer",
            targets: ["Rudder-Appsflyer"]),
    ],
    dependencies: [
        // Dependencies declare other packages that this package depends on.
        .package(url: "[email protected]/rudderlabs/rudder-integration-appsflyer-ios.git", from: "2.7.0")
    ],
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages this package depends on.
        .target(
            name: "Rudder-Appsflyer",
            dependencies: [
                .product(name: "Rudder-Appsflyer", package: "rudder-integration-appsflyer-ios")
            ]),
        .testTarget(
            name: "RudderStackTests",
            dependencies: ["Rudder-Appsflyer"]),
    ]
)
  1. Initialize the Appsflyer SDK before initializing the Rudder SDK as shown below:
#import <AppsFlyerLib/AppsFlyerLib.h>

[[AppsFlyerLib shared] setAppsFlyerDevKey:<devKey>];
[[AppsFlyerLib shared] setAppleAppID:<appleAppId>];
[AppsFlyerLib shared].isDebug = YES;
[[AppsFlyerLib shared] start];

Initialize RSClient

Put this code in your AppDelegate.m file under the method didFinishLaunchingWithOptions

RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:DATA_PLANE_URL];
[builder withFactory:[RudderAppsflyerFactory instance]];
[RSClient getInstance:WRITE_KEY config:[builder build]];

Send Events

Follow the steps from the RudderStack iOS SDK.

Contact Us

If you come across any issues while configuring or using this integration, please feel free to start a conversation on our Slack channel. We will be happy to help you.

rudder-integration-appsflyer-ios's People

Contributors

1abhishekpandey avatar ameypv-rudder avatar arnab-p avatar arnabp92 avatar bryanjbryce avatar chryssaaliferi avatar dependabot[bot] avatar desusai7 avatar pallabmaiti avatar shwetalodhe123 avatar web-flow avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bryanjbryce

rudder-integration-appsflyer-ios's Issues

Is this library still supported?

The latest version of the Rudderstack SDK is 2.4.3, and the current definition in the Package.swift of from: "1.0.0" will avoid updating to major versions.
Similarly, the latest version of the AppsFlyer SDK is 6.12.3 that is explicitly excluded from the specified range: "6.12.2"..<"6.12.3".

Is this library still supported? Why is the latest version of AppsFlyer explicitly excluded? Should I copy paste the content of this library into our project? Should I roll my own?

Can't find Header

I install the SDK with Cocoapods and afterwards I get a build error:
image

Supporting AppsFlyer-Strict

Is there any plan to support the version of the Appsflyer SDK that does not contain any IDFA collection?

With a recent update, Appsflyer split their SDK in 3 libraries: Static, which is the one this package is currently using, Dynamic and Strict.

As our application does not perform IDFA collection, we would prefer to use the Strict version of the library, but this is not possible at the moment since this Rudderstack integration forces a dependency on the Static version instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.