objective c - Apple in-app purchase help needed -
i trying add apple in-app purchase next game, have trouble. use
nsset *productidentifiers = [nsset setwithobjects: @"com.compa.game.world1cim", @"com.compa.game.world2base", nil]; self.request = [[[skproductsrequest alloc] initwithproductidentifiers:productidentifiers] autorelease]; _request.delegate = self; [_request start];
, receive apple:
- (void)productsrequest:(skproductsrequest *)request didreceiveresponse:(skproductsresponse *)response { cclog(@"received products results... %@",response.products); self.products = response.products; self.request = nil; [[nsnotificationcenter defaultcenter] postnotificationname:kproductsloadednotification object:_products]; }
i have other fonctions around, not important.
app set, apple id set, in-app purchase on itunes connect set. every time try receive empty array : received products results... ()
, yes try on real device. if me nice, thanks
Comments
Post a Comment