Im setting up an hybrid app using Cordova. I need to match a GET request to a server to fetch some data thats in JSON format, this data from the server automatically updates with new data every now and then, several times a day at a non-consistent time.
My goal is to ping a notification on the phone, via a Cordova plugin whenever the data on the server changes, I need to somehow automatically listen and dynamically fetch the new data whenever it changes, how would one recommend I do this and potentially with what Cordova plugin? I need to use as little mobile data as possible, but on wi-fi it shouldnt be a problem.
Solution :
From the description of what you are trying to accomplish, you should consider push to device instead of doing GETs