I have to monitor the state of a device every x seconds.
To do this, I have to call a web service that returns the state of the device periodically.
Which is the smartest way to do this?
The check should be done while the user is using the app.
Should I implement a sort of background service?
Is it possible with Ionic4?
Thank you very much