![]() ![]() Restoring completed transactions creates a new transaction for every completed transaction the user made, essentially replaying history for your transaction queue observer. Refreshing a receipt does not create any new transactions. Refreshing the receipt asks the App Store for the latest copy of the receipt. If you need to support versions of iOS earlier than iOS 7, where the app receipt isn’t available, restore completed transactions instead. If you use Apple-hosted content, restoring completed transactions gives your app the transaction objects it uses to download the content. However, some apps need to take an alternate approach for one of the following reasons: The refreshed receipt contains a record of the user’s purchases in this app, on this device or any other device. In most cases, all your app needs to do is refresh its receipt and deliver the products in its receipt. Then select Purchase History to view your purchase history. ![]() Next, if you are asked to sign in, log in using your Apple ID and password. ![]() Restoring purchases prompts for the user’s App Store credentials, which interrupts the flow of your app: because of this, don’t automatically restore purchases, especially not every time your app is launched. Here’s how you can view your Purchase History on your iPhone or iPad: First, open your Settings app and select your name. Include some mechanism in your app to let the user restore their purchases, such as a Restore Purchases button. For example, when they upgrade to a new phone, they don’t lose all of the items they purchased on the old phone. Users restore transactions to maintain access to content they’ve already purchased. Most of the cases, you just need to refresh the receipt (at appStoreReceiptURL) so that you know which transactions users have made. When users purchases something via In App Purchase, the content at appStoreReceiptURL is updated with purchases information. Read this Restoring Purchased Products to understand the purposes between the 2.įrom iOS 7, every app downloaded from the store has a receipt (for downloading/buying the app) at appStoreReceiptURL. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |