Apple receipt - original_purchase_date has date before app creation

三世轮回 提交于 2019-12-22 06:47:08

问题


I'm a bit confused with this. So following this approach I got json which contains bunch of decrypted fields. Among them original_purchase_date.

What I need is to track if application was purchased before this new version becomes free and I think I need to use this field for that. But for some reason on sandbox environment it shows date

"original_purchase_date" = "2013-08-01 07:00:00 Etc/GMT";

which is couple of years before application was made.

So right now I'm not sure

  1. Why it shows that date.

  2. Is original_purchase_date really the field I need to track.


回答1:


Original purchase date is always "2013-08-01 07:00:00 Etc/GMT" for sandbox environment.

You can use Original Purchase Date for your need but I suggest using original application version field. So, it's much easier then using date.




回答2:


  1. Because you're in sandbox environment.
  2. Yes, you should use original_purchase_date! Because original_application_version is totally wrong - it contains a BUILD NUMBER, not full version. I tested this in production.

Source: https://www.andr.mu/logs/migrating-an-ios-app-from-paid-to-freemium/



来源:https://stackoverflow.com/questions/44116593/apple-receipt-original-purchase-date-has-date-before-app-creation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!