Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain products requests (necessary for tvOS) #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sergiou87
Copy link

This PR fixes the same problem as #163: on tvOS, instances of SKProductsRequest are not retained by the framework, so the app needs to retain them. Otherwise, we won't get the delegated called.

This PR is different from #163 because this one allows a user of RMStore to perform multiple requests in parallel, while in #163 subsequent requests would deallocate the previous ones, being the last one the only one that would call the delegate methods.

@marcospolanco
Copy link

@sergiou87 I'm implementing this functionality now; do you know any reason why your PR appears to be unmerged, and if you edits work well. Much appreciated!

@sergiou87
Copy link
Author

Nope, no idea why it's unmerged 🤷‍♂️ 😞

This code works well, yeah, it's what our app uses everyday 😄

@marcospolanco
Copy link

Much appreciated!

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

Successfully merging this pull request may close these issues.

2 participants