SDK Initialization


Android


MyTargetManager.initSdk(Context context);
SDK initialization. Prepares the data required for an advertising request. Called automatically by default.

Automatic SDK initialization can be disabled by adding a tag to AndroidManifest

<meta-data
 android:name="com.my.target.autoInitMode"
            android:value="0" />

iOS


[MTRGManager initSdk];
SDK initialization. Prepares the data required for an advertising request. Called automatically by default.

Automatic SDK initialization can be turned off by adding a key and value to the Info.plist file:

<key>MyTargetSDKAutoInitMode</key>
<false/>
Was this article helpful?