Windows 8.1 and 10
You have to enable Internet (enabled by default in Windows 10) and Location (if needed) in the Capabilities tab of Package.appxmanifest for correct work of the SDK.
To start working with the SDK, add the DevToDev.winmd and DevToDev.Background.winmd to the project references.
Initialize the library at Application Launching event.
App ID and Secret key can be found in the application settings (Open "Settings" → "SDK" → "Integration").
Example:
If the application you integrate SDK in is a part of cross-platform project, then the user data initialization is required.
Since the analytics of a 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 UserID field and SetCurrentLevel method should be called just after the authorization. You don't need to call the SDK initialization one more time.
Debug mode
To enable the debug mode and make SDK notifications displayed in the console use this method:
Last updated
Was this helpful?