mkstorekit

How can I reset sandboxed in-app purchases on iOS for testing?

大憨熊 提交于 2019-12-30 02:17:11
问题 I made a sandbox iTunes user, bought an item. That worked but there were some issues in my code for displaying the item. So, I want to re-buy it to test again. Problem is, I can't clear my purchases. I signed out my sandbox user, deleted the app and re-installed it, changed itunes users a few times... the item still shows up as purchased. I'm using MKStoreKit. Any ideas? 回答1: Well, I figured it out. MKStoreKit saves purchased items to the keychain, which persists even if you change iTunes

MKStorekit isFeaturePurchased returns NO after calling restorePreviousTransactionsOnComplete

痞子三分冷 提交于 2019-12-24 03:39:20
问题 I'm trying to implement a restore purchase button for a non-consumable product using the excellent MKStoreKit. I've got the folliwing code on the restore button: [[MKStoreManager sharedManager] restorePreviousTransactionsOnComplete:^{ [_priceLabel completeWithText:NSLocalizedString(@"App restored :)", @"")]; } onError:^(NSError *error) { [_priceLabel completeWithText:NSLocalizedString(@"Unable to restore", @"")]; }]; the completion block gets called correctly, but when I call [MKStoreManager

In App Purchase not working while reviewing by Apple

自古美人都是妖i 提交于 2019-12-11 12:29:18
问题 I have an app with working In App purchases, it was approved by Apple and it is now in Appstore. A few days ago I submitted a new version of the app with one new consumable purchase, implemented as others were. I'm using MKStoreKit and this method to buy a feature: // ... showing loading window [[MKStoreManager sharedManager] buyFeature:feature onComplete:^(NSString* purchasedFeature,NSData* purchasedReceipt, NSArray* availableDownloads) { // ... some handler and close loading onCancelled:^ {

NSUbiquitousKeyValueStore and In-App-Purchase

那年仲夏 提交于 2019-12-11 10:50:30
问题 today I just opened my 1,5 month old project and wanted to add a new In-App-Purchase to the app, so I added all the information to iTunesConnect, didn't change anything for the existing ones. When I now run the app ALL of the purchases won't work, I'm using MKStoreKit but the SKRequest also doesn't throw any errors. In addition I'm getting the following logged in console without adding iCloud support: NSUbiquitousKeyValueStore error: com.mycompany.myapp has no valid com.apple.developer

MKStoreKit -isSubscriptionActive always return False

混江龙づ霸主 提交于 2019-12-08 04:24:01
问题 I am Using MKStoreKit for autorenewable subscription. On Button's TouchUpInside method I am using following code.. if([[MKStoreManager sharedManager] isSubscriptionActive:kSubscriptionMonthlyIdentifier]){ //access to subscription feature }else{ //ask user to buy } It always returns me false. And ask user to buy. When I tried to buy again it shows me that You are already subscribed . Is there something that I am doing wrong? Is there any other method to check if subscription is active or not.

MKStoreKit autorenewable subscriptions

余生颓废 提交于 2019-12-07 08:59:06
问题 I am using MKStoreKit to handle autorenewable subscriptions. I'm currently testing a 1 month subscription (in test a subscription lasts 5 minutes). After I purchase the subscription I wait for it to expire. Once it expires I check if the subscription is still active. [[MKStoreManager sharedManager] isSubscriptionActive:kSubscriptionMonthlyIdentifier] This returns false like I would expect. However, since it is auto-renewing, I would expect MKStoreKit at that point to contact Apple to

MKStoreKit isFeaturePurchased reporting incorrectly

给你一囗甜甜゛ 提交于 2019-12-06 16:12:26
问题 I'm trying to use MKStoreKit to implement in-app purchases in an app of mine. It is working great for the most part, except for one thing that I can't figure out. I'm using the following method to restore transactions. -(void)restoreToFullVersion:(UIViewController *)sender{ [MBProgressHUD showHUDAddedTo:sender.view animated:TRUE]; [[MKStoreManager sharedManager] restorePreviousTransactionsOnComplete:^{ [MBProgressHUD hideHUDForView:sender.view animated:TRUE]; [[NSNotificationCenter

MKStoreKit autorenewable subscriptions

懵懂的女人 提交于 2019-12-05 14:08:38
I am using MKStoreKit to handle autorenewable subscriptions. I'm currently testing a 1 month subscription (in test a subscription lasts 5 minutes). After I purchase the subscription I wait for it to expire. Once it expires I check if the subscription is still active. [[MKStoreManager sharedManager] isSubscriptionActive:kSubscriptionMonthlyIdentifier] This returns false like I would expect. However, since it is auto-renewing, I would expect MKStoreKit at that point to contact Apple to revalidate the subscription. Maybe I'm using MKStoreKit wrong, but according to the docs and the blog post it

MKStoreKit isFeaturePurchased reporting incorrectly

久未见 提交于 2019-12-04 22:28:12
I'm trying to use MKStoreKit to implement in-app purchases in an app of mine. It is working great for the most part, except for one thing that I can't figure out. I'm using the following method to restore transactions. -(void)restoreToFullVersion:(UIViewController *)sender{ [MBProgressHUD showHUDAddedTo:sender.view animated:TRUE]; [[MKStoreManager sharedManager] restorePreviousTransactionsOnComplete:^{ [MBProgressHUD hideHUDForView:sender.view animated:TRUE]; [[NSNotificationCenter defaultCenter] postNotificationName:@"userDidUpgradeNotification" object:nil userInfo:nil]; [self

How can I reset sandboxed in-app purchases on iOS for testing?

狂风中的少年 提交于 2019-11-30 07:30:57
I made a sandbox iTunes user, bought an item. That worked but there were some issues in my code for displaying the item. So, I want to re-buy it to test again. Problem is, I can't clear my purchases. I signed out my sandbox user, deleted the app and re-installed it, changed itunes users a few times... the item still shows up as purchased. I'm using MKStoreKit. Any ideas? Well, I figured it out. MKStoreKit saves purchased items to the keychain, which persists even if you change iTunes accounts or delete the app. Calling a quick [[MKStoreManager sharedManager] removeAllKeychainData]; reset