Skip to content

Conversation

@anikiki
Copy link
Contributor

@anikiki anikiki commented Dec 9, 2025

Task/Issue URL: https://app.asana.com/1/137249556945/project/1200581511062568/task/1212290309897024?focus=true

Description

Added a background time threshold check to the RemoteMessageModalSurfaceEvaluator. The modal will now only be shown if the app has been in the background for at least 4 hours. This prevents the modal from appearing too frequently when users are actively using the app.

Steps to test this PR

Background time threshold

  • On this branch, change the threshold to 1 min in RemoteMessageModalSurfaceEvaluatorImpl: BACKGROUND_THRESHOLD_MILLIS = 60 * 1000L
  • Put the app in background for less than 1 min, then bring it to foreground - modal should not appear
  • Put the app in background for more than 1 min, then bring it to foreground - modal should appear if other conditions are met

NO UI changes

Copy link
Contributor Author

anikiki commented Dec 9, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

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.

1 participant