menu
Is this helpful?

# Native Pluggable

Notices

After v2.6.0, it is supported to switch the type of code executed by the iOS/Android native platform. By default, Objective-C/Java code is executed, and C# code is executed after switching.

For online iOS/Android applications, after updating the version of "Execute C# code", users will lose persistent data, including Device ID, Account ID, Distinct ID, Event Super Properties, etc., and will be identified as a new user after the upgrade. Please choose carefully.

# 1. Pluggable process

# 1.1 iOS

By default, Objective-C code is executed, and C# code is executed after switching.

  • Download and uncompress Unity SDK (opens new window), double click to import ta_unity_sdk.unitypackage. On the import interface, uncheck the Plugins/iOS and click Import.

Attention: If you have imported the Unity SDK before, you need to check the files in the Plugins/iOS directory, if there are no files or directories other than "ThinkingSDK", "TAThirdParty", "ThinkingAnalytics.m", Simply delete the Plugins/iOS directory, otherwise delete the above files and directories.

  • Open Project Settings - Player - iOS , find Scripting Define Symbols, click + add TE_DISABLE_IOS_OCto list, and Apply

# 1.2 Android

By default, Java code is executed, and C# code is executed after switching.

  • Download and uncompress Unity SDK (opens new window), double click to import ta_unity_sdk.unitypackage. On the import interface, uncheck the Plugins/Adnroid and click Import.

Attention: If you have imported the Unity SDK before, you need to check the files in the Plugins/Android directory, if there are no files or directories other than "ThinkingSDK.aar", "ThinkingSDK-gameengine.aar", "ThinkingSDK-thirdparty.aar", Simply delete the Plugins/Android directory, otherwise delete the above files.

  • Open Project Settings - Player - Android, find Scripting Define Symbols, click + add TE_DISABLE_ANDROID_JAVA to list, and Apply