Troubleshooting

Web

SDK not responding

  • Ensure Unity.call is available in your environment
  • Check that the AR SDK is properly loaded
  • Verify JSON stringification is working correctly

Events not received

  • Ensure onUnityMessage is defined as a global function
  • Check browser console for errors
  • Verify the AR SDK is sending messages correctly

Native (Swift / Kotlin)

SDK not responding or no events

  • iOS: ensure you called sdk.start { ... } and that the closure actually forwards to UnityFramework.getInstance()?.sendMessageToGO(...)
  • Android: ensure you called TreedisARSDK.start() and that the :unityLibrary module (which contains com.treedis.arsdk.ArSdkBridge) is included
  • Verify the Unity framework/library is fully loaded before sending commands

All integrations

Localization not starting

  • Ensure you've called setEnvironment and setTourInfo before startLocalization
  • Check that the window size has been set (windowSize / setWindowSize)
  • Verify the tour slug and matterId are correct