-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[in_app_purchase] Add documentation for price change confirmations #4092
[in_app_purchase] Add documentation for price change confirmations #4092
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewrote the description to remove the "you" to make it more clear who is responsible for which actions.
Co-authored-by: Maurits van Beusekom <[email protected]>
if (priceChangeConfirmationResult.responseCode == BillingResponse.ok) { | ||
// TODO acknowledge price change | ||
} else { | ||
// TODO show error | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mvanbeusekom I'm not sure what to do here. Should I just add a print statement, leave these todo's or do you have an idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can simply show a snackbar message confirming the price change or showing the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good % the // TODO: ...
comments in the Android specific code (see also my reply to your earlier comment).
if (priceChangeConfirmationResult.responseCode == BillingResponse.ok) { | ||
// TODO acknowledge price change | ||
} else { | ||
// TODO show error | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can simply show a snackbar message confirming the price change or showing the error?
@mvanbeusekom I also added the code that actually calls the price change function: 4b62107#diff-4a28c57f2e830b968dfb575e9152d91d12d3d276641696552e79df589daa1291L261-R263 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* upstream_master: (40 commits) [image_picker] Image picker fix camera device (flutter#3898) [flutter_plugin_tools] Improve license-check output (flutter#4154) [webview_flutter] Fix broken keyboard issue link (flutter#3266) [flutter_plugin_tools] Support format on Windows (flutter#4150) [flutter_plugin_tools] Make unit tests pass on Windows (flutter#4149) [image_picker_for_web] Migrate image_picker to package:cross_file (flutter#4083) [various] Prepare plugin repo for binding API improvements (flutter#4148) [quick_actions] Add const constructor (flutter#4131) [in_app_purchase] Add iOS currency symbol to ProductDetails (flutter#4144) [in_app_purchase] Added priceCurrencySymbol to SkuDetailsWrapper (flutter#4114) [image_picker_platform_interface] Add methods that return package:cross_file (flutter#4072) [flutter_plugin_tools] Improve and test 'format' (flutter#4145) [flutter_plugin_tools] Only check target packages in analyze (flutter#4146) [in_app_purchase] Fix crash when retrieveReceiptWithError gives an error. (flutter#4138) [video_player] Pause video when it completes (flutter#3727) [in_app_purchase] Add currencySymbol to ProductDetails (flutter#4115) [in_app_purchase] Add documentation for price change confirmations (flutter#4092) [camera] android-rework part 8: Supporting modules for final implementation (flutter#4054) [plugin_platform_interface] Fix README broken link (flutter#4143) [various] Prepare plugin repo for binding API improvements (flutter#4137) ...
The Android and iOS plugins for in_app_purchase added features to handle price change confirmations. This PR adds the explanation to the readme of the generic package.
This PR is a WIP/Draft as the iOS feature is not completely finished yet.
Android: PR #4077 and issue flutter/flutter#85038
iOS PR #4085 and issue flutter/flutter#85129
Pre-launch Checklist
dart format
.)[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.