ios - productsRequest seems to return empty set for one app while non-empty for another -
dear all:
i inherited program can compiled 2 ios apps, 1 traditional chinese , 1 simplified chinese. apps have inapppurchase , worked fine in last version. year, revised program without changing inapppurchase process. after submissions, apple rejected traditional chinese app saying stuck in inapppurchase page.
simplified chinese app approved.
traced program following code. seems apps empty response set productsrequest. however, must did not sandbox testing since don't know how. not sure why worked fine in last year's version failed in year's.
there change default assumption on bundle id, application id, .. etc. checked program , not find can set app id productsrequest statement. program standard follows. appreciated.
// determine whether payments can made if (![skpaymentqueue canmakepayments]) { uialertview *alert = [[uialertview alloc] initwithtitle:@"warning" message:@"ineffective" delegate:nil cancelbuttontitle:@"ok?" otherbuttontitles:nil]; [alert show]; } else { [buttonprice settitle:@"waiting price" forstate:uicontrolstatenormal]; [buttonpriceall settitle:@"waiting price" forstate:uicontrolstatenormal]; // request product data productsrequest = [[skproductsrequest alloc] initwithproductidentifiers:[nsset setwithobjects:bookproductids[0], bookproductids[purchasevolume-1], nil]]; productsrequest.delegate = self; [productsrequest start]; [self operationstarted]; }
Comments
Post a Comment