Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudderlabs/rudder-integration-appsflyer-ios
RudderStack's Native SDK integration support for AppsFlyer.
https://github.com/rudderlabs/rudder-integration-appsflyer-ios
appsflyer ios rudderstack
Last synced: 4 days ago
JSON representation
RudderStack's Native SDK integration support for AppsFlyer.
- Host: GitHub
- URL: https://github.com/rudderlabs/rudder-integration-appsflyer-ios
- Owner: rudderlabs
- License: other
- Created: 2020-02-21T10:46:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-22T13:59:52.000Z (6 months ago)
- Last Synced: 2024-05-22T14:01:07.129Z (6 months ago)
- Topics: appsflyer, ios, rudderstack
- Language: Objective-C
- Homepage: https://www.rudderstack.com
- Size: 156 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# What is RudderStack?
[RudderStack](https://rudderstack.com/) 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](https://github.com/rudderlabs/rudder-server).
## Integrating AppsFlyer with RudderStack's iOS SDK
1. Add [Appsflyer](https://www.appsflyer.com) as a destination in the [Dashboard](https://app.rudderstack.com/) and provide ```devKey``` and `appleAppId` from your iTunes profile.
2. Rudder-Appsflyer is available through [**CocoaPods**](https://cocoapods.org) and [**Swift Package Manager (SPM)**](https://www.swift.org/package-manager/).
### CocoaPods
```ruby
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](#xcode)
* [Swift](#swift)#### Xcode
* Go to **File** - **Add Package**, as shown:
![Adding a package](https://user-images.githubusercontent.com/59817155/140903027-286a1d64-f5d5-4041-9827-47b6cef76a46.png)
* 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](https://user-images.githubusercontent.com/59817155/145574696-8c849749-13e0-40d5-aacb-3fccb5c8e67d.png)
* 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
// 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"]),
]
)
```3. Initialize the `Appsflyer` SDK before initializing the Rudder SDK as shown below:
```
#import[[AppsFlyerLib shared] setAppsFlyerDevKey:];
[[AppsFlyerLib shared] setAppleAppID:];
[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](https://github.com/rudderlabs/rudder-sdk-ios).
## Contact Us
If you come across any issues while configuring or using this integration, please feel free to start a conversation on our [Slack](https://github.com/rudderlabs/rudder-integration-braze-ios/pull/4) channel. We will be happy to help you.