Hi there good people! I was having freezing problems with my Android 4.4.2 side menu type app and decided to try reproduce the error using the standard template from Ionic, which gave the same issue on multiple phones.
Steps to reproduce:
- sudo ionic start myapp sidemenu
- cd myapp
- sudo ionic platform add android
- sudo ionic run android
- In the new app, navigate to a menu, then, press back key until you exit
- Relaunch the app via the icon, and repeat step 5
- Do this about 5 times until the app freezes!
So far have tested this on a Samsung S4 and S5 running Android 4.4.2 All seem to freeze. Anyone else having issues with this? Running on a Motorolla with Android 5.1 is fine.
Cheers
Shaun
EDIT 1: I have just tested using the tabs template, same problem!
EDIT 2: If I press the Home button to get to Android’s home screen whilst the app is frozen, and then relaunch the app, it is unfrozen (until a complete the above steps again!)
EDIT 3 I added console logs to the various menu items. These are still firing when I tap on them, and showing on the Chrome ADB console logs, even though the display is frozen.
It seems to have something to do with resources not being released in Android 4.4.2 when you leave the app and re-enter multiple times (even though I could not pick up anything significant in the heap snapshots on Chrome ADB). If you force stop the app once you leave via Android Setttings, then all fine when you re-enter.