Hi,
I am testing analytics integration from the editor to the integration validator. From the OnApplicationQuit method, I am sending a custom event, but I get a NotInitialized result back (all other events is working correctly). Is this intended behavior? I thought messages the Analytics SDK cannot send would be cached and sent the next time the game is started.
Update:
Same thing happens when trying to send custom event from OnApplicationPause(true).
We do not allow events to occur in OnApplicationQuit/OnApplicationPause because they may not have enough time to cache the event before the application actually quits/pauses and could possibly lead to lost data.
Generally you would want to avoid any scripting in OnApplicationQuit as objects are in the process of being unloaded from memory. Also, keep in mind that the current Analytics dashboard would not provide insight into per-user data as you likely require, and only shows aggregated data. If you have a Pro license, then you can use Raw Data Export https://docs.unity3d.com/Manual/UnityAnalyticsRawDataExport.html