I have some data in my Json. This data updates automatically every 20 seconds.
There is a field in that josn called power Values of power could be from int 1 to 600
I would like to create a class which would check the value of power every 20 seconds and alert the user using in app notification if the value of the power goes above or below a certain value.
What is the best way of achieving this ? Is there a library that can be used ?