Search code examples
iosobjective-ccordovauiwebview

didReceiveMemoryWarning: what type of memory?


I have a base cordova app, with some objective-c code around cordova's framework. Sometimes I've didReceiveMemoryWarning notification, but I don't understand if the problem is the javascript inside the UIWebView or other. The documentation says:

Your app never calls this method directly. Instead, this method is called when the system determines that the amount of available memory is low.

But my question is: what type of memory? RAM? Heap allocations? Something else?


Solution

  • RAM, it is for RAM, if your app consuming more memory without realising it, and no memory to remain to process any more thread then, this didreceivememorywarning get called by system.