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 6885243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:36:36+00:00 2026-05-27T05:36:36+00:00

In my iOS application, I’ve 3 products where users can purchase using in-app purchase.

  • 0

In my iOS application, I’ve 3 products where users can purchase using in-app purchase.
From my iOS application, i just want to get the price of all the 3 items that are on the apple server.
How can I get only the price without user’s intervention. (May be i’ve to handle in view did load or some method)

  • 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-27T05:36:37+00:00Added an answer on May 27, 2026 at 5:36 am

    You don’t need any user intervention to get any product info. All you have to do is to send a product request info and implement a callback method that’ll handle the response as shown below (the example has been taken from http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/):

    - (void)requestProUpgradeProductData
    {
        NSSet *productIdentifiers = [NSSet setWithObject:@"com.runmonster.runmonsterfree.upgradetopro" ];
        productsRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiers];
        productsRequest.delegate = self;
        [productsRequest start];
    
        // we will release the request object in the delegate callback
    }
    
    #pragma mark -
    #pragma mark SKProductsRequestDelegate methods
    
    - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
    {
        NSArray *products = response.products;
        proUpgradeProduct = [products count] == 1 ? [[products firstObject] retain] : nil;
        if (proUpgradeProduct)
        {
            NSLog(@"Product title: %@" , proUpgradeProduct.localizedTitle);
            NSLog(@"Product description: %@" , proUpgradeProduct.localizedDescription);
            NSLog(@"Product price: %@" , proUpgradeProduct.price);
            NSLog(@"Product id: %@" , proUpgradeProduct.productIdentifier);
        }
    
        for (NSString *invalidProductId in response.invalidProductIdentifiers)
        {
            NSLog(@"Invalid product id: %@" , invalidProductId);
        }
    
        // finally release the reqest we alloc/init’ed in requestProUpgradeProductData
        [productsRequest release];
    
        [[NSNotificationCenter defaultCenter] postNotificationName:kInAppPurchaseManagerProductsFetchedNotification object:self userInfo:nil];
    }
    

    Just call requestProUpgradeProductData from viewDidLoad.

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

Sidebar

Related Questions

Let's say I want to make an iOS application that is using new notifications
I'm building an iOS application which fetches all of it's data from an online
I'm testing an iOS application and I just want to see when HTTPS traffic
I want to create a custom alert view within my iOS application. For example,
I'm working on an iOS app where I want to load one view if
My IOS application program have tableview in navigation controller secondview. I want to save
In my iOS application, I am parsing an XML from a SOAP based webservice
I have an ios application that runs on xcode 3.2.6. I want to change
I'm creating a ios application without nib files and want to initialize the window
I'm developing an iOS application that will be used just by a company employees

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.