I have created an app on both android and ios, but I keep experiencing random crashes only on my iphone device. Upon debugging in xCode, I realised that every time before the crashes happen, there are several memory warnings thrown.
WARNING → applicationDidReceiveMemoryWarning()
I figured I had to unload all my unused assets in the event where my memory is running low, but is there any way in which I can catch this warning and handle it in Unity?
I have seen answers which required the developer to make plugins in other languages such as objective C, or C with code snippets, but I have no knowledge in objective C or how to make plugins for Unity, so are there any solutions which I can use in Unity?