简体   繁体   English

他们是否有办法在iOS中首次识别用户更新应用程序和用户安装应用程序?

[英]Is their any way to identify user updating app and user installing app for the first time in iOS?

I'm giving an update for my existing iOS App and in this update I'm locking few existing functionalities and on In App purchase these functionalities will be unlocked. 我正在为现有的iOS应用程序提供更新,在此更新中,我锁定了一些现有功能,并且在应用程序内购买时,这些功能将被解锁。 But for existing users even if they update it should not lock the functionalities only for new users it has to happen. 但是对于现有用户,即使他们进行了更新,也不应仅针对新用户锁定功能。 How can I handle this? 我该如何处理?

You can do what is called "Receipt Validation." 您可以执行所谓的“收据验证”。 There is a programming guide here 有一个节目指南这里

Basically, you can get the purchase data of the app, and it will include the original version that was purchased. 基本上,您可以获取应用程序的购买数据,其中将包含已购买的原始版本。 That way, if it is below the version that you introduced the new model into then you can disable in app purchasing and just give the full functionality. 这样,如果它低于您引入新模型的版本,则可以在应用程序购买中禁用它,并提供全部功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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