I work on Android, and if I use the hardware return button to exit the application, the componentWillUnmount function is called. However, if I use the square button to show a list of running applications and swipe the screen to close this function, the call will not be called.
Any ideas on how to determine when the application is closing so I can clear timers, save data, etc.
Thank.
source
share