Can fire an function each 10 seconds?

I need to know if i can fire an event or function each 10 seconds trying to check some information who comes in a get…
The function is hosted in a provider


Use an interval: setInterval(() => this.functionCall(), 10000);

1 Like

I set in the constructor and it works. thanks

Constantly waking a device like this is going to kill battery life for your users.

How you can achieve something simmilar without intervals?

My concern isn’t about implementation details; but rather the idea that when devices are asleep, they are supposed to be asleep. How about enabling and disabling this timer using the Platform's pause and resume events?