EmptyStack
EmptyStack

Reputation: 51374

What is the best approach to handle trial version apps?

I am developing an application where the user can use the app without registering for 14 days. After which he must register (not any payment) to continue using the app.

The approach I am using now is to store the first launch date into the user defaults, and compare it with the current date on every successive launches. This approach will fail if the user sets back the clock to avoid being have to register.

My question is similar to the following question, How to limit daily-usage even if user sets his clock back?, but I am not sure that will help me.

Is there any other better approach?

Upvotes: 0

Views: 310

Answers (2)

Enrique
Enrique

Reputation: 126

I think this can help.

Define a list of 14 days and store them in the user defaults. The first day is the installation date and the others are the next 13 days. These are the only days allowed to use your application. If the user sets the date prior to your first day, it will be out of the allowed range. This does not prevent setting the date to any date in range. To avoid it, store the usage minutes for each day and check for a reasonable maximun usage per day.

To avoid the user reinstalling the app, store some data in the keychain to keep a record of the installation and total free usage.

Upvotes: 1

Sharon Nathaniel
Sharon Nathaniel

Reputation: 1467

I believe these trail apps are not entertained by Apple read Apple guidelines

2.9 Apps that are "beta", "demo", "trial", or "test" versions will be rejected

Upvotes: 5

Related Questions