S
S
sadgb2011-12-05 13:38:43
iPhone
sadgb, 2011-12-05 13:38:43

[Solved] Please help with InApp purchases

I ask for the help of the habra community in solving the problem

Background
Paid application in iTunesConnect in the Waiting For Upload state, while NO build has been loaded
In App 1 element:
Reference name: GodMode
Product ID: #{Bundle identifier}.godmode
Type: Non-Consumable
Status: Ready to Submit

Then I do Everything is OK Then I try to request data Specifically, this element of the store created yesterday does not work either on the device or in the simulator - and there and there I logged out of the store account . What is my mistake?
if ([SKPaymentQueue canMakePayments])
{
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
}



- (void) requestProductData
{
SKProductsRequest *request= [[SKProductsRequest alloc] initWithProductIdentifiers: [NSSet setWithObject: @"#{Bundle identifier}.godmode"]];
request.delegate = self;
[request start];
}

- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response
{
NSArray *myProduct = response.products;
if ( [myProduct count] == 0 )
{
// ВСЕ ВРЕМЯ ЗАХОДИТ СЮДА
UIAlertView* x = [[UIAlertView alloc] initWithTitle:@"..."];
}
// populate UI
[request autorelease];
}



Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
G
getencapsulated, 2011-12-05
@getencapsulated

developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/DevelopingwithStoreKit/DevelopingwithStoreKit.html studied this? I need a sandbox account, as I understand it, at least in the case of gamecenter.

S
sadgb, 2011-12-05
@sadgb

yes, I have it, in the case of the game center they offer to enter, but then an empty list is simply returned
Yes, and in the simulator it is not particularly possible to log in as a test user

S
sadgb, 2011-12-15
@sadgb

As long as your account is not in the verified status, you will continue to receive an empty list, very sad =)
now everything works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question