Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

tvOS working? #249

Open
nickthedude opened this issue Oct 21, 2015 · 1 comment
Open

tvOS working? #249

nickthedude opened this issue Oct 21, 2015 · 1 comment

Comments

@nickthedude
Copy link

Hey, sorry if this is a known issue, but I was unable to get this working on tvOS. I call the setup method (startProductRequest) in the delegate, but the delegate methods (productsRequest:(SKProductsRequest *)request didReceiveResponse etc) never fire and the notifications are never sent out. I see the startProductRequest method being called, it's got the right product id's but it never hit's the delegate methods to handle the response. My products are definitely valid because I used another lib when this didn't work and things worked as expected. But seem like I should get a 'product invalid' response anyway. Possible I'm just doing something idiotic too.

Thanks for all the work on this, I've used it on iOS and it works great, can't thank you enough. Hope I'm doing something dumb.

Nick

@martinsekeres
Copy link

in .m file
online 63 add @Property (nonatomic, strong) SKProductsRequest *productsRequest;
under @implementation add @synthesize productsRequest;
in method startProductRequestWithProductIdentifiers change

SKProductsRequest * productsRequest = [[SKProductsRequest alloc]
initWithProductIdentifiers:[NSSet setWithArray:items]];

to

productsRequest = [[SKProductsRequest alloc]
initWithProductIdentifiers:[NSSet setWithArray:items]];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants