The Customer Data Platform for Developers
Website · Documentation · Community Slack
This repository contains the resources and assets required to integrate the RudderStack iOS SDK with Singular.
For more information on configuring Singular as a destination in RudderStack and the supported events and their mappings, refer to the Singular documentation.
Important: This device mode integration is supported for Singular v12.5.0 and above. |
---|
- Add Singular as a destination in the RudderStack dashboard.
RudderSingular
is available through CocoaPods. To install it, add the following line to yourPodfile
:
pod 'RudderSingular', '~> 1.2.0'
- Run the
pod install
command.
import RudderSingular
@import RudderSingular;
Place the following in your AppDelegate
under the didFinishLaunchingWithOptions
method.
let config: RSConfig = RSConfig(writeKey: WRITE_KEY)
.dataPlaneURL(DATA_PLANE_URL)
RSClient.sharedInstance().configure(with: config)
let rudderSingularConfig = RudderSingularConfig()
.skAdNetworkEnabled(true)
.manualSkanConversionManagement(true)
.conversionValueUpdatedCallback({ value in
print("Your SKAN handler \(value)")
})
.waitForTrackingAuthorizationWithTimeoutInterval(0)
RSClient.sharedInstance().addDestination(RudderSingularDestination(rudderSingularConfig: rudderSingularConfig))
RSConfig *config = [[RSConfig alloc] initWithWriteKey:WRITE_KEY];
[config dataPlaneURL:DATA_PLANE_URL];
[[RSClient sharedInstance] configureWith:config];
RudderSingularConfig *rudderSingularConfig = [[RudderSingularConfig alloc] init];
[rudderSingularConfig skAdNetworkEnabled:YES];
[rudderSingularConfig manualSkanConversionManagement:YES];
[rudderSingularConfig conversionValueUpdatedCallback:^(NSInteger value) {
printf("Your SKAN handler %ld", value);
}];
[rudderSingularConfig waitForTrackingAuthorizationWithTimeoutInterval:0];
[[RSClient sharedInstance] addDestination:[[RudderSingularDestination alloc] initWithRudderSingularConfig:rudderSingularConfig]];
Follow the steps listed in the RudderStack iOS SDK repo to start sending events to Singular.
RudderStack is the customer data platform for developers. With RudderStack, you can build and deploy efficient pipelines that collect customer data from every app, website, and SaaS platform, then activate your data in your warehouse, business, and marketing tools.
Start building a better, warehouse-first CDP that delivers complete, unified data to every part of your customer data stack. Sign up for RudderStack Cloud today. |
---|
For queries on configuring or using this integration, start a conversation in our Slack community.