plugins
plugins copied to clipboard
fix payment discount (iOS Promotional Offers) into being actually usable
Make iOS Promotional Offers in in_app_purchase plugin usable
Resolves: [in-app-purchase][iOS] Promotional Offers in iOS not working
Pre-launch Checklist
- [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities.
- [x] I read and followed the [relevant style guides] and ran [the auto-formatter]. (Unlike the flutter/flutter repo, the flutter/plugins repo does use
dart format.) - [X] I signed the [CLA].
- [X] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g.
[shared_preferences] - [X] I listed at least one issue that this PR fixes in the description above.
- [X] I updated
pubspec.yamlwith an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes]. - [X] I updated
CHANGELOG.mdto add a description of the change, [following repository CHANGELOG style]. - [X] I updated/added relevant documentation (doc comments with
///). - [X] I added new tests to check the change I am making, or this PR is [test-exempt].
- [X] All existing and new tests are passing.
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).
If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?
Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.
Thanks for the contribution! You’ve checked boxes in the PR checklist above that are not reflected in this PR, so I’m assuming this is a work in progress and am marking it as a Draft. Please review the checklist, updating the PR as appropriate, and when the checklist reflects the state of the PR as posted please feel free to mark it as ready for review.
Also, it would be helpful if you could provide more information in the issue about what exactly you were doing and what didn't work; it just asserts that the feature doesn't work without much detail, which makes it hard to evaluate.
@stuartmorgan indeed it's work in progress.
About missing details, will this be helpful enough:
I was trying to implement iOS Promotional offers using the in-app-purchase plug in. I did not found any example of how it could be done in the original repo or articles in the web. It seems like nobody has done it, or mentioned how it is doable. I found the Pull request where the Promotional offers were implemented in the plugin: here . But there was no example of using it either. Browsing trough the code I found out there is no direct way to use newly added
SKPaymentDiscountWrapperclass upon which the feature relies. There are 2 other issues related with the current implementation mentioned in my comment here
and if so, do you need it posted in the original issue body text?
Since this is marked as a draft and hasn't been updated in several months I'm going to close it to clean out our review queue. Please don't hesitate to submit a new PR if you decide to revisit this. Thanks!
@stuartmorgan I've opened another PR here which isn't a draft. Hopefully it will be more useful than this one.