问题
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
Why it shows that date.
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:
- Because you're in sandbox environment.
- 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