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 upgradeSuccessful];
} onError:^(NSError *error) {
[MBProgressHUD hideHUDForView:sender.view animated:TRUE];
}];
}//end method
I have nslogged the completion block and the above code all works as expected except for if you then call
[MKStoreManager isFeaturePurchased:kMainNoncomsumable];
it returns false. Am I correct in thinking that after the restore process has completed MKStoreManager should return true for isFeaturePurchased or am I missing something?
I am only implementing one non-consumable in-app purchase and included MKStoreManager into my project using Cocoa-pods.
It seems as if other people on SO are having the same problem, but I have not found a valid solution yet.
Thanks in advance for all the help!