Notifications with MKStoreKit

I use MKStoreKit for automatic renewable subscriptions and everything works fine, but I don't know what these notifications do. ( kSubscriptionsPurchasedNotification and kSubscriptionsInvalidNotification ).

When I call them in the ViewDidLoad or didFinishLaunchingWithOptions , their respective methods are called, but if([MKStoreManager isFeaturePurchased:@"myFeature"]) always returns false and enters the else statement. So why is this happening and what is the use of using them?

Secondly, as I said, I use automatic renewable subscriptions, when the subscription has expired, the subscription does not renew automatically, the user must click again to enter my application and subscribe manually.

+6
source share
1 answer

If you work with subscriptions, you should use:

 [[MKStoreManager sharedManager] isSubscriptionActive:@"myFeature"]; 

not: [MKStoreManager isFeaturePurchased: @ "myFeature"]

 isFeaturePurchased: 

used to verify purchases in the Consumable app.

0
source

All Articles