Variables are lost after 1 hour

when the ionic 3 application is minimized for more than 1 hour variables are lost when i reopen the application,why is it happening can any one please help

The variables declared in memory at file ts will be deleteā€¦
You can try use LocalStorare or IonicStorage