How to "auto refresh" a GET request

I’m making a GET request and it works correctly but I need to close and reopen the app to get the new information.
How can I auto refresh or make an auto request on this page?

You can use ion refresher

But I don’t want a “push to refresh” it’s possible to do that with ion refresher?

Then try set interval function

1 Like

Could you give some example? I’ve already tried but didn’t work

setInterval(()=> {
       this.getData(); },4000); 
     }

getData() is the function that gets the data.
4000 is the amount of milliseconds to wait between each execution of getData()

1 Like

@MuhammadRameez and @MattE
And now it works !!
Thanks a lot for the help