gpt4 book ai didi

ios - [NSBundle appStoreReceiptURL] 的收据在应用程序更新后是否仍然存在

转载 作者:可可西里 更新时间:2023-11-01 03:35:04 25 4
gpt4 key购买 nike

在生产环境中,如果用户进行应用内购买,然后更新到更新版本的应用,反射(reflect)应用内购买的收据是否仍然存在于 bundle 中?还是会被应用更新清除?

最佳答案

好吧,我想我终于找到了这个问题的答案。

A receipt is meant to be a trusted record of a purchase, along withany in-app purchases that the user has made — much like a paperreceipt that you get when shopping in a store. Here are some keypoints about receipts:

  • A receipt is created and signed by Apple through the App Store.

  • A receipt is issued for a specific version of an application and a specific device.

  • A receipt is stored locally on the device.

  • A receipt is issued each time an installation or an updateoccurs.

  • When an application is installed, a receipt that matches theapplication and the device is issued.

  • When an application is updated, a receipt that matches the new version of the application is issued.

  • A receipt is issued each time a transaction occurs:

  • When an in-app purchase occurs, a receipt is issued so that it can be accessed to verify that purchase.

  • When previous transactions are restored, a receipt is issued so that it can be accessed to verify those purchases.

来源于https://www.objc.io/issues/17-security/receipt-validation/

因此,如果您更新收据上有购买历史记录的应用程序,则此购买历史记录应包含在为新应用程序版本签发的新收据中。 (当然除非它是消耗品)。

关于ios - [NSBundle appStoreReceiptURL] 的收据在应用程序更新后是否仍然存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25905008/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com