我有一个问题要问你们。我有我的应用程序,但我需要它可以打开只有一天。例如,如果用户今天打开应用程序,它将自行关闭,因为我只想打开直到11月12日,得到它?
希望我已经解释了我需要做什么。提前谢谢。
答案 0 :(得分:2)
我想你想要试用一次,对吧?
有很多方法,我目前只有两种方式:
pros: - Easy to implement. - Work offline. cons: - User can change the current time of his device. - User can change the MAX_USAGE if he know how to dissamble the code.
pros: - User can't change the MAX_USAGE because it reside in server. - More reliable for checking if app has been tempered or not. cons: - Hard to implement. - Need to maintanance both user app and server. - Need to check for server availability. - Don't work offline.