I am developing an app that has refills lives every 5 minutes. What is the best way to check the time since the last refill so that the user cannot trick the system by changing the time on their device?
For an example, look at Candy Crush. Changing the system time on there gives you extra lives, and this is what I need preventing. I have gone through with this link iOS Development - Check Internet Time but in that I am getting date and time for UTC how can I get the time and date for IST.Even I used http://www.timeapi.org/ist/now now I am getting incorrect time.How can I achieve it??THank you in advance