In-App-Kauf Antwort.Produkte leeren

Ich weiß, es wurde vorher gefragt: iPhone In-App-Kauf - Reaktion.Produkte sind immer noch leer?

aber ich bin auch zu versuchen, ein in-app-Kauf und meine Antwort.Produkte leer ist.
Meine situation:

Ich hochgeladen und abgelehnt meine binären einmal.

Aber dann lege ich den status wieder zu warten, wieder hochladen.(Spielt es eine Rolle?)

Den status aller meiner in-app-Kauf-Produkte sind "Ready to Submit".

Meine Produktion Benutzer angemeldet ist aus. Test user nicht angemeldet noch.

-(void) requestProductData{
    SKProductsRequest *productRequest= [[SKProductsRequest alloc] 
                                 initWithProductIdentifiers:[NSSet setWithObjects:
                                                             @"com.mydomain.myapp.Pack1", 
                                                             @"com.mydomain.myapp.Pack2",
                                                             @"com.mydomain.myapp.Pack3",nil]];

productRequest.delegate = self;
[productRequest start];
}

-(void)productsRequest:(SKProductsRequest *)request 
    didReceiveResponse:(SKProductsResponse *)response{

NSArray *myProducts = response.products; 

NSLog(@"%d",[myProducts count]);//this prints 0
for(SKProduct * product in myProducts) {
    [products addObject:product];
}
[request autorelease]; 


}

    in my viewdidload:


if([SKPaymentQueue canMakePayments]) {
        NSLog(@"IN-APP:can make payments");
    }
    else {
        NSLog(@"IN-APP:can't make payments");
    }

    /*load transaction history to see if the user already bought some packs*/
    [[SKPaymentQueue defaultQueue] addTransactionObserver:self];
    products = [[NSMutableArray alloc] init];
    NSArray *paths = NSSearchPathForDirectoriesInDomains (NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0]; 
    NSString * path = [documentsDirectory stringByAppendingPathComponent: @"history.plist"];
    self.transactionHistory = [NSMutableArray arrayWithContentsOfFile: path];

    if(!transactionHistory) { 
        NSMutableArray *_transactionHistory = [[NSMutableArray alloc] init]; 
        self.transactionHistory = _transactionHistory;
        [_transactionHistory release];
    } 
    //some other initializations here
    [self requestProductData];

for (NSString *invalidProductId in response.invalidProductIdentifiers)
    {
        NSLog(@"Invalid product id: %@" , invalidProductId);
    }
//this returns 3 of my product id's
  • Leer oder die Antwort "Ungültige Produkt-IDs" ?
  • im debugger, wenn ich sehe Reaktion. es ist NSObject - isa und _internal - isa, aber das ist es. ich auch nicht, siehe die Antwort.Produkte im debugger, und wenn ich sage, NSArray *myProducts = Reaktion.Produkte; myProducts hat 0 Elemente
  • Die app im Debug-Modus ?
  • ja :] ist es nicht möglich zu Debuggen, storekit?
  • Was ist der Wert von invalidProductIdentifiers Eigenschaft ?
  • jup du hast Recht ich habe das array voll von meinen Produkt-ids. was soll ich tun?
  • Arbeitete für mich, aber YMMV. Werden Sie sicher, dass Sie unterzeichnet haben, alle finanziellen Informationen in iTunesConnect. Ging aus genau diesem problem zu arbeiten, werden fast augenblicklich.
  • Ich habe bereits eine bezahlte app im store. So wie es scheint, ich habe Sie alle..

InformationsquelleAutor tiw | 2011-07-11
Schreibe einen Kommentar