简体   繁体   中英

Correct way of implementing a Time Trial version for iOS apps

Apple has finally accepted submissions of Time Trial versions for Apps and in their latest guidelines, at paragraph 3.1.1 they do recommend implementing them as FREE In-app purchases ("Non-Consumable IAP item at Price Tier 0").

I have done so, but now it is not clear to me how to prevent a user from doing trials ad infinitum, by simply uninstalling the app, reinstalling it and RESTORING the Free in-app purchase!

Is there any way of preventing it?

I believe that any flags that we programmatically save in NSUserDefaults would be deleted if the app is manually uninstalled together with all data. Correct?

Have a look at DeviceCheck :

Using the DeviceCheck APIs, in combination with server-to-server APIs, you can set and query two bits of data per device, while maintaining user privacy.
You might use this data to identify devices that have already taken advantage of a promotional offer that you provide, or to flag a device that you've determined to be fraudulent.

You can parse the receipt and extract Purchase Date of the In-App purchase for the free trial. See Receipt Fields . Even if the item is restored, the date will correspond to the original purchase date.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM