MKStoreKit icon indicating copy to clipboard operation
MKStoreKit copied to clipboard

MKStorekit isProductPurchased returns NO after kMKStoreKitProductPurchasedNotification notification is received.

Open roman0914 opened this issue 10 years ago • 3 comments

Hello,

I am trying to implement a "RemoveWatermark" purchase button for a non-consumable product using the excellent MKStoreKit.

I've got the folliwing code on the purchase button:

if ([[MKStoreKit sharedKit] isProductPurchased:RemoveWaterMark]) { // do some stuff here } else { // do some stuff here }

But it actually returns NO always and this callback is being worked . Why MKStorekit doesn't save the product id purchased ?

[[NSNotificationCenter defaultCenter] addObserverForName:kMKStoreKitProductPurchasedNotification
                                                  object:nil
                                                   queue:[[NSOperationQueue alloc] init]
                                              usingBlock:^(NSNotification *note) {

..... }

Thanks in advance.

roman0914 avatar Apr 09 '15 04:04 roman0914

I'm running into the same issue. Has this been resolved in any way yet?

mikejahn avatar Oct 03 '15 17:10 mikejahn

My plan is just to not rely on isProductPurchased. I'll just store the NSUserDefaults myself when I get a purchased notification and work with that without ever calling isProductPurchased.

It worked fine for me in testing, but I've had customers telling me that it's not acting purchased when it is, or it is acting purchased when it's not. This is a pretty insidious and directly financially damaging bug.

benslaney avatar Sep 18 '16 08:09 benslaney

Wow, has this been resolved? I don't want to run to this issue.

c4b4d4 avatar Nov 01 '17 03:11 c4b4d4