Mac OS
This generation of SDK is deprecated and is no longer supported. Information about the current version can be found here.
Please do the following to integrate your application with devtodev:
Add the application to the Space using the wizard for adding application.
Download the latest version of the devtodev.framework from the GitHub repository and add it to 'Linked Frameworks and Libraries' list in the general settings of the project.
Add init method into didFinishLaunchingWithOptions method of your AppDelegate.m
App ID and Secret key can be found in the application settings (Open "Settings" → "SDK" → "Integration").
If the application you integrate SDK in is a part of a cross-platform project, then the user data initialization is required.
Since the analytics of cross-platform projects is based on a unique user (unlike the usual projects where it is based on device identifiers), you have to:
Set the unique cross-platform user identifier (it will be used for a cross-platform project data collection).
Actualize the user data. Mostly it is about game applications where the player has a game level as a characteristic. For such projects, you need to set the current player level.
If your application allows user to re-login (changing the user during the working session of application), then the setUserID and setCurrentLevel methods should be called just after the authorization. You don't need to call the SDK initialization one more time.
We recommend you set the user identifier before SDK initialization, otherwise, the user identifier from the previous session will be used since the SDK initialization moment till the setUserID method call.
If your cross-platform application is supposed to be used without cross-platform authorization, don't use the setUserID method or use the empty string ("") as the user identifier. SDK will assign the unique identifier to a user. This identifier will be used until the real cross-platform identifier assigns to the user.
Debug mode
To enable the debug mode and make SDK notifications displayed in the console, use this method:
Last updated