storekit

iOS Restore in App purchases with receipts

五迷三道 提交于 2019-11-29 09:39:57
问题 The following extract is from the Apple documents how to restore in App purchases in iOS 7. They say that you can store the receipts and find out later what they user already bought or you can refresh the App Receipt. My questions are: 1) Is there the one app receipt or are there many single receipt? 2) Does it make more sense to store these receipts instead of just storing directly which features the user has already bought 3) How can I examine the receipt that I get from that refresh? All

StoreKit on iOS - autorenewable subscription - How to know whether it is a free trial or not?

北城余情 提交于 2019-11-29 09:08:21
In iTunes Connect it is possible to give a free trial period for autorenewable subscriptions. App > Manage In App Purchases > Subscription Basic > 1 Month > Offer a free trial? How can I get this information on the client? SKProduct does not have any information about this as I can see. Since we're having a marketing campaign it is very confusing for the end user to not see information about the product has a trial period. Of course it is possible to fetch this kind of information from a server I maintain, but then we'll have the overhead with updating both our server and iTunes Connect. So I

SKReceiptRefreshRequest vs restoreCompletedTransactions

南笙酒味 提交于 2019-11-29 04:02:24
My app uses a subscription model and I´m getting complaints where some users can´t restore their subscription through SKPaymentQueue.restoreCompletedTransactions . They have to delete the app and re download it from the AppStore. I'm not really sure why it is happening only to some of the users, one of them told me he cancel and reactivated through itunes, another about a payment issue. So why do they need to re-download the app? I'm guessing some information is not refreshing properly on the receipt, so I was thinking of using SKReceiptRefreshRequest instead of restoreCompletedTransactions ,

SKStoreProductViewController showing up with delay

我怕爱的太早我们不能终老 提交于 2019-11-29 03:16:19
问题 I use in my app the SKStoreProductViewController . It shows up correctly, but with a few seconds of delay, which slows down the user experience. Is there something wrong in my code ? Or should I inform the user that the VC is loading ? Because right now one can believe that nothing is happening after pressing the button (which triggers the following code) : -(void)launchApp:(id)sender { // Recall on main thread if necessary if (![NSThread isMainThread]) { [self performSelectorOnMainThread:

SKPayementQueue: restoring transactions finishes without calling 'updatedTransactions' in release config but not debug config

99封情书 提交于 2019-11-28 23:14:07
问题 I'm debugging restoring transactions and in my debug configuration everything works normally: IE I call: [[SKPaymentQueue defaultQueue] restoreCompletedTransactions]; sometime later the queueCalls: - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions and sometime after that it calls: - (void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue *)queue { and everyone is happy. BUT in my release configuration, I never see the call to

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

帅比萌擦擦* 提交于 2019-11-28 19:53:54
This question already has an answer here: unzip source code in Iphone 2 answers Is there any zip decompression for iPhone? 3 answers 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 hands me over a ZIP. This ZIP probably contains the file structure of the content package. But how do I unzip this? Nishant

Non-renewing Subscriptions: Removed From Receipt?

北城以北 提交于 2019-11-28 19:41:41
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 lost) to do a restore. I have most of this basically working but as I've been progressing with my

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

三世轮回 提交于 2019-11-28 18:25:01
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 users and associate subscription purchases with the user who purchased them. I would like to follow this

Logout from AppStore on iOS Simulator

一笑奈何 提交于 2019-11-28 17:25:44
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? Tushar There is another way to log out from that sandbox account without "Reset Content & Settings" . Just remove the files from the following path in your home directory : ~/Library

iOS Sandbox Test User account Subscription Management

徘徊边缘 提交于 2019-11-28 17:23:28
问题 I'm currently trying to add IAP to an existing App. To that end, I've added some products and created some test users. The products are recurring subscriptions. The device I'm testing with is an iPhone 4S with iOS 5.1. I can successfully query the store for my products, and successfully purchase them with my new Test users. The problem I have is that if I try to manage my subscriptions from the Store Settings App, it forces me to Review my account by telling me that "This account has not been