Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:15:37+00:00 2026-05-26T18:15:37+00:00

In my iPhone app, i’ve set up an in app purchase. I start the

  • 0

In my iPhone app, i’ve set up an in app purchase. I start the request like this:

SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers: [NSSet setWithObject: @"com.nicknoble.tiprounder.upgrade"]];
request.delegate = self;
[request start];

And I use this method to get the response:

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{   
    NSLog(@"response recieved");
}

And this one to catch an error:

-(void)request:(SKRequest *)request didFailWithError:(NSError *)error
{
    NSLog(@"%@",error.description);
}

But neither ever get called. My project has no warnings or errors, and I am running this on my device (iPhone). Any suggestions?

EDIT:

So it works on my window’s root view controller, but not on modal view controllers i present. Here is the code from my main view controller:

TestViewController *testView = [[TestViewController alloc] initWithNibName:@"TestViewController" bundle:nil];
[self presentModalViewController:testView animated:YES];

Here is the .h file for TestViewController:

#import <UIKit/UIKit.h>
#import <StoreKit/StoreKit.h>

@interface TestViewController : UIViewController <SKProductsRequestDelegate>
@end

Here is the code for my .m file:

#import "TestViewController.h"

@implementation TestViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers:     [NSSet setWithObject: @"com.nicknoble.tiprounder.upgrade"]];
    request.delegate = self;
    [request start];
}

-(void)request:(SKRequest *)request didFailWithError:(NSError *)error
{
    NSLog(@"%@",error.description);
}

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{   
    NSLog(@"response recieved");
}

@end

Im desperate. Any help would be great! Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:15:37+00:00Added an answer on May 26, 2026 at 6:15 pm

    check your product identifier first.
    also check if the class in which these methods are implemented is not released somehow. (might be autoreleased and got released automatically while you are waiting for response)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My iPhone app started logging this error: lo->hi recycling invariant violated! followed by: Program
developing iphone app, I have used a UIImageview and i have set an image
My iPhone App has custom buttons that display png-images. I like to replace the
My iPhone app is getting ready to go to production and we like to
My iphone app occasionally crashes on the simulator and device with this message in
On Iphone App start I start a background thread to receive some data from
my iphone app crashes unexpectedly and looking at the crash log I can't tell
The iPhone app that I am working on requires GET calls to a 3rd
My iPhone app generally uses under 5MB of living memory and even in the
My iphone app called Google Local Search(non javascript version) to behave some search business.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.