这曾经为我工作,但现在不再工作了,我不知道为什么。我的应用中有应用内购买设置。我确认我有一组正确的产品标识符,与 itunesconnect 中相应的应用内购买项目相匹配。呼叫发出到 Apple view [productRequest start]
,但我从未收到回复,尽管我将委托设置为我自己。我错过了什么?
NSLog(@"productIdentifiersSet: %@", productIdentifiersSet);
if ([productIdentifiersSet count]) {
SKProductsRequest *productRequest = [[SKProductsRequest alloc] initWithProductIdentifiers:productIdentifiersSet];
[productRequest setDelegate:self];
[productRequest start];
}
…………</p>
- (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response {
<never called>
}
- (void)requestDidFinish:(SKRequest *)request {
<never called>
}
- (void)request:(SKRequest *)request didFailWithError:(NSError *)error {
<never called>
}