storekit

When to use restoreCompletedTransactions for in-app purchases?

北战南征 提交于 2019-11-27 17:36:08
For a basic app with nonconsumable in-app purchases, has anyone figured out best practices for using SKPaymentQueue's restoreCompletedTransactions ? Observations I know it's recommended to always register a transaction observer to receive pending transactions that make their way back to the app, but this is a different question. It looks like restoreCompletedTransactions is something the app has to actively decide when to call to poll for all the purchases the customer has already made. From what I can tell, the method is designed to retrieve purchases that may have been lost. For example a

iPhone StoreKit - invalid product id's

允我心安 提交于 2019-11-27 17:20:55
I'm trying to test In App Purchase within the sandbox environment. In order to test the code I did the following: Created an In App Purchase Test User account under 'Manage Users' in iTunes Connect Created some in app purchase products under 'Manage Your In App Purchases'. I used numeric values and alpha-numeric values for the Product IDs. Loaded the app onto the iPhone, went to Settings->Store and logged out of the regular store and into the test account created in step 1 Set a breakpoint in the ( void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *

How to unzip a .zip file on iOS? [duplicate]

牧云@^-^@ 提交于 2019-11-27 12:32:55
问题 This question already has answers here : unzip source code in Iphone (2 answers) Is there any zip decompression for iPhone? (3 answers) Closed 6 years ago . After StoreKit downloads the IAP content package it returns an NSURL to me which looks like this: file://localhost/private/var/mobile/Applications/45EF2B3A-3CAB-5A44-4B4A-631A122A4299/Library/Caches/BA32BC55-55DD-3AA4-B4AC-C2A456622229.zip/ Despite all sources I found claiming that StoreKit unzips the content package once downloaded, it

Non-renewing Subscriptions: Removed From Receipt?

点点圈 提交于 2019-11-27 12:28:42
问题 I'm implementing in-app purchases for my app (to be released), and providing support for iOS6 and iOS7. My question has to do with differences between non-renewing subscription mechanisms across iOS6 and iOS7, and more specifically about how a restore is implemented. To accommodate both iOS6 and iOS7, I have implemented a server-side solution to enabling a restore. I optionally allow the user to create a username/password that can be used on a different device (or the same device if data is

How to support multiple devices with non-renewing In-App Purchase?

烈酒焚心 提交于 2019-11-27 11:19:19
问题 I'm building an iOS app that will include an IAP with a non-renewing subscription. Apple provides this nugget in their overview of IAP: You are required to deliver non-renewing subscriptions to all devices owned by the user. Non-renewing subscriptions are not automatically synchronized to all devices by Store Kit; you must implement this infrastructure yourself. For example, most subscriptions are provided by an external server; your server would need to implement a mechanism to identify

StoreKit In App Purchase invalid product identifiers [duplicate]

拟墨画扇 提交于 2019-11-27 10:35:49
Possible Duplicate: iPhone StoreKit - invalid product id's I am getting an empty array of product identifiers from SKProductsRequest . I did the following steps: Created a In App Purchase Test User account under 'Manage Users' in iTunes Connect Created some in app purchase products under 'Manage Your In App Purchases'. Loaded the app onto the iPhone, went to Settings → Store and logged out of the regular store Set a breakpoint in the (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response callback All the submitted Product ID's are in the response's

Logout from AppStore on iOS Simulator

筅森魡賤 提交于 2019-11-27 10:27:25
问题 Since 5.0, iOS simulator has StoreKit support so you can debug your In-App purchases without device. But, it has one issue. Once logged in (make In-App purchase) I can't change AppStore login. Settings has not "AppStore" item, so I can't "logout" from account. I tried to delete application from simulator, restart simulator, delete test user from iTunesConnect — no success. Screen of the problem Any idea? 回答1: There is another way to log out from that sandbox account without "Reset Content &

Can we check if a user's In App Purchase has been refunded by Apple?

我们两清 提交于 2019-11-27 05:43:01
问题 Situation: - User makes an IAP and is awarded some content, we store the users device id to ensure they can access this content whenever they want. - User decided they do not like the content, so they call Apple and get a refund. - User can still access the content, even though they have been refunded for their IAP Problem: We don't want the user to be able to access this content anymore. This could become a loophole that they would take advantage of. (unlock content, then get refunded and

iPhone In App Purchase - response.products are still empty?

心已入冬 提交于 2019-11-27 05:18:48
问题 Basically, I've tried to set up in app purchases on a test app before I implement them into a proper app that my company is working on. I've read the Store kit pdf and other snippets about a 1000 times, but the products are still being returned as empty. Here's exactly what I've done so far: Setup test app and In App Purchase test items I created a new app id for 'Test App One' on my company's developer portal in the iPhone Dev Centre. I made sure that the prefix was com.mycompany.testappone

Following in app purchase, app crashing on startup. productIdentifier=nil?

夙愿已清 提交于 2019-11-27 04:27:53
问题 I have a few users who have reported that after attempting an in app purchase the app is now crashing on startup. I have asked them to delete and reinstall the app which has not worked, and attempted to ask them to go into airplane mode to stop any network communication that has not worked. I am unable to replicate the error in anyway on my devices and my in app purchase goes through just fine in sandbox and production modes. My thought is that somehow their transaction received a nil