Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds a "Restore Purchase" feature for users who have previously bought a subscription via the app store, making it easier to recover purchases on new devices or after reinstalling the app. The main changes include implementing the restore logic in the purchase service, updating the UI to surface the restore option in relevant places, and adding new localization strings for the feature.
Restore Purchase Flow Implementation:
restorePurchasesmethod to theAppPurchaseservice, handling platform-specific restore flows, tracking the restore state, and ensuring restored receipts are acknowledged with the backend. [1] [2] [3] [4] [5]UI Updates:
Plansscreen, added an inline "Already purchased? Restore Purchase" option usingAppRichText, and removed the old tile-based restore option. [1] [2]Settingscreen, added a "Restore Purchase" tile under certain conditions (store version and not already Pro), and handled the restore action in the settings menu logic. [1] [2] [3]Localization:
Supporting Changes:
_restorePurchaseFlowhandler in bothPlansandSettingscreens to trigger the restore logic and handle errors gracefully. [1] [2]These changes collectively provide a more robust and user-friendly way for users to restore their purchases within the app.