Answer the question
In order to leave comments, you need to log in
[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
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.
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question