In my app, I want to allow users to be able to use it for 7 days offline usage for free but want them to connect online once the 7 days are done and buy a subscription after that. So basically, I want to lock him out after 7 days from installation. The problem is users can very well change system time and trick the app. Also, I cannot use the server as the authority as the app is supposed to also work entirely offline, except for the time of purchasing a subscription.
I can run a background service to keep track of any system time change but I want to avoid doing that. Is there a straightforward solution that can work even if the device is offline for 7 days?