I am looking for a way to refresh my current Ionic view/page automatically every, say, 5 minutes. Is there a way to achieve this?
I guess, I am looking for some kind of “timer” or “scheduler”.
Or can I use one of the life-cycle methods? Like
One scenario is:
Let’s say I am on a page (a list of things with their statuses) in the app and for some reason stop using the phone. The phone will be locked after set time.
After, say, 15 minutes I go back to the phone and get back into the app. Here, it will display me the last page/view I was on before the phone got locked.
In this situation, I would like to refresh or reload that page to get the current statuses.
Would appreciate if you could provide some pointers.