6

I'm using MKStoreKit for auto-renewable subscriptions and everything is working fine, but I don't know what do these Notifications do. (kSubscriptionsPurchasedNotificationand kSubscriptionsInvalidNotification).

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

Secondly, like I said I'm using auto-renewable subscriptions, when the subscribed period has expired the subscription is not renewed automatically, the user has to press again to login to my app and subscribe manually.

Ömer Karışman
  • 653
  • 5
  • 14
Slavcho
  • 2,792
  • 3
  • 30
  • 48

1 Answers1

0

If you are working with subscriptions you should be using :

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

rather than : [MKStoreManager isFeaturePurchased:@"myFeature"]

isFeaturePurchased:

is used to check "Consumable" in-app purchases.

Ömer Karışman
  • 653
  • 5
  • 14