Make sure to use the `await` keyword with the `initialize` call.
Identify
For device mode integrations, the Singular SDK uses RudderStack’s identify method to map the user ID to their custom user ID. RudderStack uses Singular’s setCustomUserId API to forward the identified user ID to Singular.
A sample identify call for both the Android and iOS SDKs is shown below:
The track call lets you capture any user actions and the properties associated with them. Each user action is considered to be an event.
Tracking custom events
A custom track call lets you track custom events as they occur in your apps. RudderStack sends these calls to Singular where they are processed as custom post-install events and are made available in the relevant reports.
A sample custom track call for both the Android and iOS SDKs is shown below:
Singular supports tracking revenue events. It implements revenue tracking whenever an event containing the revenue property is sent(including a zero value). Optionally, you can also pass the currency field as an ISO code.
The screen method allows you to record whenever a user sees the mobile screen, along with any associated optional properties. This call is similar to the page call for the web applications but exclusive to your mobile device.
A sample screen call for both the Android and iOS SDKs is shown below:
e above snippet, RudderStack captures all information related to the viewed screen, along with any additional info about the screen.
RudderStack sends the screen event to Singular as a custom event.
Reset
The reset method resets the current user’s identity and creates a new anonymous session. It should be called when a user logs out.
RudderStack calls Singular’s unsetCustomUserId method to reset a user’s identity.
A sample reset call for both the Android and iOS SDKs is shown below:
[[RSClientgetInstance]reset];
RudderClient.getInstance()?.reset();
Implementing SKAdNetwork (SKAN) support
Add the following code before the initialization of the iOS SDK to give the control to Singular for your SKAdNetwork integration:
[RudderSingularIntegrationsetSKANOptions:YESisManualSkanConversionManagementMode:YESwithWaitForTrackingAuthorizationWithTimeoutInterval:@0withConversionValueUpdatedHandler:^(NSIntegerconversionValue){// Receive a callback whenever the Conversion Value is updated
NSLog(@"SKAN handler %ld",conversionValue);}];
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.