Is there a way to detect programatically how much RAM is available on iOS (preferably on Android too)? How do I detect how much RAM is being used by my app?
Those systems (iOS and Android) don’t clear the memory. They usually keep the last used Apps in memory. They simply kick out the oldest application when the system / active app needs memory. So ideally the whole memory is in use. Even when you get a value for the unused memory, you most likely can use more than that.