Memory leaks in one of the major problem nowadays with the mobile applications, a good mobile app will consume less memory of the device because mobile device having limited memory and processing capabilities as compared with the system. Memory plays the major role while the application is running on the mobile device, a good application is always clears the memory once the page is not in use, with Xamarin Forms it is very difficult to manage the memory while the application is running.
There are certain factors which cause the memory leaks in the mobile application,
Multiple instances of objects/class
Using more static objects/classes
not clearing database (SQL Lite) while logout etc.
All the above factors are responsible for the memory leaked in mobile application, which may cause crashes or app will perform slow. There are various approaches which will help mobile apps to release the memory from its cache and prevent application from crashes.
There are many techniques which helps mobile app to improve the performance and avoid the memory leaks, some of them we are going to see,
It will impact on the performance of the application,
a. When we are navigating form one page to another we need to use below points as best development practices in mobile,