GameAnalytics / GA-SDK-UNITY

The GameAnalytics SDK for tracking events in Unity.
MIT License
120 stars 56 forks source link

Unity 文档中,代码示例有问题 #41

Open NRatel opened 3 weeks ago

NRatel commented 3 weeks ago

image

GameAnalyticsATTListenerAuthorized 会在非主线程调用,而 GameAnalytics.Initialize() 中访问了必须主线程才能访问的Unity API。

image 如图,ios 将在 IDFA 授权后,初始化执行到 Application.isPlaying 处崩溃。

建议修改示例代码。