save and load device time
I want to give the player 10 coins every 24 hours. I don't want it to reset, just keeping adding the 10 coins every day. How can I save the current device time? And how to compare it when the player opens the app. And when the 24 hours passes when the app is open, then how does it add the coins when it already loaded the attribute? I found templates, but they are too complicated and I don't know which ones are currently working. Please help me.