Low memory warnings are calculated differently for Android and iOS. The Unity SDK does not handle low memory warnings and follows the behavior of the native SDKs.


On Android, we are listening to System’s onTrimMemory which is determined by the OS when it is a good time for a process to trim unneeded memory. If the value returned is 10 (TRIM_MEMORY_RUNNING_LOW) we attempt to capture the timestamp.


For iOS, we receive the notification applicationDidReceiveMemoryWarning from the OS. This indicates the phone is running out of memory.