macOS
Last updated
Last updated
1. Download the latest version of devtodev SDK from the repository
2. Add DTDAnalytics.xcframework
to the project (with Do Not Embed specified)
3. Add frameworks:
AppTrackingTransparency.framework
AdSupport.framework
4. Add initialization todidFinishLaunchingWithOptions
method:
An App ID can be found in the settings of the respective app in devtodev (Settings → SDK → Integration → Credentials).
config
- an object instance of DTDAnalyticsConfiguration
, which is used for specifying additional properties during the initialization.
DTDAnalyticsConfiguration
Parameter | Type | Description |
| int | The player level at the moment of devtodev SDK initialization. It is recommended (but optional) to use to improve data precision. |
| string | A custom user identifier provided by the developer. If you utilize the default calculation by the device ID, this identifier can be used for finding a user in devtodev. In case your project utilizes the calculation by the user identifier, you must set this parameter because it becomes the main user identifier in devtodev. |
| DTDTrackingStatus (enum) | The property allows or disallows devtodev tracking of the user. By default, it is set to |
| DTDLogLevel (enum) | The level of logging the SDK activity. The |
Example:
Create Bridging-Header. To do this, you need to add any swift file to the project (don’t delete it later) and choose ‘Create Bridging Header’ in the offered dialog box.
Make sure that the ‘Build Settings’ for ‘Defines Module’ value evaluates to ‘YES’.
While importing, use: #import <DTDAnalytics/DTDAnalytics-Swift.h>
For SDK to function properly, it needs to be integrated at the earliest moment of the app launch. It is recommended that you use the following method of main entry point initialization: