2

I have an iphone application in which i am trying to implement subscription with mkstorekit 4.1.everything works fine except that this code. in success i was adding the subscribed view. but it is not getting called at all.Can anybody help me?

    [[MKStoreManager sharedManager] buyFeature:kFeatureAId onComplete:^(NSString* purchasedFeature) 
     { 
                     //isPurchased = YES;
         NSLog(@"Purchased: in commmmpletion %@", purchasedFeature);
         [self showsubscribedview];

    } onCancelled:^ { 

        //purchas = YES; 
        NSLog(@" User Cancelled Transaction");
        return; 

    }];
Nikita Pestrov
  • 5,876
  • 4
  • 31
  • 66
hacker
  • 8,919
  • 12
  • 62
  • 108

1 Answers1

-1

Are you following this article?? http://blog.mugunthkumar.com/coding/using-mkstorekit-in-your-apps/

I think you have not registered your purchase.

NSCry
  • 1,662
  • 6
  • 23
  • 39
  • Ya i did .when i go to next tab and come back i am testing – hacker Apr 13 '12 at 10:42
  • if([[MKStoreManager sharedManager] isSubscriptionActive:kFeatureAId]) { //unlock i //NSLog(@"from appear %@",[[MKStoreManager sharedManager] isSubscriptionActive:kFeatureAId]); [self showsubscribedview]; } like this and it is ahowing the correct view at that time – hacker Apr 13 '12 at 10:42
  • But unfortunately when i am testing in the device it is not getting.when i came to that view it is showing the unsubscribed view every time.but when i am trying to purchase it is showing i have already subscribed to this – hacker Apr 13 '12 at 10:44
  • I want to say have you configured the products list in itunes connect?? – NSCry Apr 14 '12 at 12:23
  • yes for sure.the only doubt i have is i am not using the server part of that mkstorekit.because i dnt have a server.i am using the same code for checking is subscription active .is that the reason? – hacker Apr 15 '12 at 04:31
  • Why you are not using direct store kit api?? – NSCry Apr 16 '12 at 09:29