storekit

Differentiating between initial buy and free “re-buy” in StoreKit/In-App Purchase

試著忘記壹切 提交于 2019-11-30 15:40:24
From the StoreKit guide: If the user attempts to purchase a nonconsumable product or a renewable subscription they have already purchased, your application receives a regular transaction for that item, not a restore transaction. However, the user is not charged again for that product. Your application should treat these transactions identically to those of the original transaction. This presents a huge problem in an app I am working on. We have licensed a large body of content from a publisher for sale through in-app purchase. They require that every time we sell a piece of this content (i.e.

Mechanism to detect display of iOS 10.3 app rating dialog?

谁都会走 提交于 2019-11-30 15:39:07
TL;DR: Is there some way on iOS to detect the presence/display of the Storekit App Rating dialog added in iOS 10.3? I've recently added support for the new app rating dialog to my apps using: [SKStoreReviewController requestReview]; However, I'm aware there's some caveats of usage (as documented here ), namely that the dialog may or may not be presented on calling the above function, the not cases including if the customer has already rated the app or the customer has dimissed the dialog 3 times. I'm also aware that Apple doesn't expect presentation of the dialog to be directly invoked by a

iOS sandbox environment auto-renewal subscription

为君一笑 提交于 2019-11-30 10:16:46
问题 I have the following questions regarding iOS auto-renewable subscriptions a) Are auto-renewal subscriptions really auto-renewing in the sandbox environment? The problem seems to be that subscriptions are not renewed automatically although the documentation says that even in sandbox environment it should happen 6 times. b) Do we need to call restoreCompletedTransactions to get new receipt for automatically extended subscription, or is -paymentQueue:updatedTransactions: method called

iOS Restore in App purchases with receipts

旧巷老猫 提交于 2019-11-30 07:29:17
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 my tries to parse it failed so far. 4) Is there any framework that has a lot of features (saving

SKStoreProductViewController showing up with delay

痞子三分冷 提交于 2019-11-30 05:30:22
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:@selector(launchApp:) withObject:sender waitUntilDone:NO]; return; } // Initialize Product View Controller

How to find out WHEN a user bought the app / installed it for the first time (possible without UDID?)

♀尐吖头ヾ 提交于 2019-11-30 04:57:00
问题 I would like to find out when a user first bought my app... so far, I havent found a clean way and a UDID seemed to be the only option. Ideally there would be a receipt I can get via StoreKit but so far.. nada have I missed something ? Does anybody have an idea? The situation is that I have a subscription and the FIRST issue (from the time you buy the app should be free). If I reinstall at a later time.. I should always get the original issue) example: I buy the app in 10.2010 I install and

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

时光总嘲笑我的痴心妄想 提交于 2019-11-30 02:45:28
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 updatedTransactions and so I never actually restore the purchases. possibly related, after I attempt the restore and

iOS Sandbox Test User account Subscription Management

心不动则不痛 提交于 2019-11-29 21:19:23
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 used to purchase anything in the AppStore, please review your account and continue." If I review the

iOS sandbox environment auto-renewal subscription

跟風遠走 提交于 2019-11-29 19:38:50
I have the following questions regarding iOS auto-renewable subscriptions a) Are auto-renewal subscriptions really auto-renewing in the sandbox environment? The problem seems to be that subscriptions are not renewed automatically although the documentation says that even in sandbox environment it should happen 6 times. b) Do we need to call restoreCompletedTransactions to get new receipt for automatically extended subscription, or is -paymentQueue:updatedTransactions: method called automatically by iOS? (I guess it automatically called on 'launch' & 'rotation out of background' not sure) c)

iOS In App Purchase - “Invalid Product ID” in release, NOT development version

别等时光非礼了梦想. 提交于 2019-11-29 14:19:47
I created a new app and uploaded the binary to iTunes Connect, then tested IAP using the test user account, both on the simulator and on the device. Both worked. I submitted the final app and it is currently live on the App Store. However, after deleting the development version from my device and downloading my app from the App Store to test IAP, the app immediately receives an "Invalid Product ID:" error. Once again, the development version worked using the test user account, but live on the store it does not work and returns invalid product ID. Any ideas what this might be? If anyone wants