When the timer starts, save the current system time in Local Storage. If player closed the game, next time it opens retrieve the value from Local Storage and you'll be able to calculate how much time has passed and whether to give the reward or not.
If you are worried about people changing the time on their device to trick your game, you can retrieve the time from the Internet, there are plenty of free services.