Skip to content

Navigation Menu

Sign in
Sign up

feat: re-evaluate payment readiness when the app is resumed - #335

Open
stephenmcd wants to merge 1 commit into
main from
feature/readiness-on-resume
Open

feat: re-evaluate payment readiness when the app is resumed #335
stephenmcd wants to merge 1 commit into
main from
feature/readiness-on-resume

Conversation

@stephenmcd

@stephenmcd stephenmcd commented Aug 17, 2026

Copy link
Copy Markdown
Contributor
  • Register WidgetsBindingObserver in _PayButtonState to observe app lifecycle transitions.
  • Re-issue the readiness Future and rebuild when the app is resumed.
  • Add widget tests to verify that returning to the foreground triggers a re-evaluation.

closes #9

⚠️
Hello, and thank you for your contributions!

Please review the following checklist before creating a new pull request:

  • Review and contribute to existing pull requests and open issues to avoid redundant efforts.
  • Read the contribution guidelines.
  • Assign reviewers.
  • If applicable, include a reference to related issues.
  • If this is a new feature, create an issue and coordinate with other contributors to make sure the feature can be made available in all platforms supported.

⚠️ Delete this block before creating the pull request.

Describe the changes proposed

A clear and concise description of the changes included in this pull request.

Screenshots / Videos

If useful, include any screeshots or screencasts to better explain the change.

Additional context

Add any other context about the change here.

- Register WidgetsBindingObserver in _PayButtonState to observe app lifecycle transitions.
- Re-issue the readiness Future and rebuild when the app is resumed.
- Add widget tests to verify that returning to the foreground triggers a re-evaluation.
closes #9 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Check for Google Pay availability after bringing the application back to the foreground

1 participant

AltStyle によって変換されたページ (->オリジナル) /