Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Conversation

@dmitry-voronkevich
Copy link

Hello,

We come up to your library and a challenge and decided to participate.

Our solution based on several ideas:

  • Only one process should generate paces. We choose it by time when it was installed in system (or by package name). We query system for all broadcast receivers who can handle our specific action, then sort that list by installDate. And then only the oldest will generate paces
  • All processes should receive any settings updates, so if oldest app uninstalled, next app can take responsibility for paces
  • Once many apps can use library, we decided to remove exponential option, since it will help only limited number of apps
  • Shorter timeout settings wins over longer timeout. So if logic decided when it should generate pace and has settings of 5 minutes and 7 minutes, it will generate it every 5 minutes
  • When device reboot, master app will reschedule paces according to settings
  • All apps listens to PACKAGE_REMOVED so they can remove settings of removed app and then oldest of left apps can take responsibility for future pace generations

Please contact us in case of any questions and hope our changes are useful.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant