Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Shake Detector not working when app in background #40

Merged
merged 6 commits into from
Sep 30, 2024

Conversation

Dr-Blank
Copy link
Owner

  • app was not able to start listening to accelerometer stream once it was in background
  • hence this pr avoids disposing of the shake detector by not subscribing to player events and disabling rebuilds when sleep timer is reset
  • also since providers are not rebuilt when app is in background, subscribing to event stream is the only way to keep shake detector functional
  • it still rebuilds on app settings changes as that can only happen in foreground

@github-actions github-actions bot added the bug Something isn't working label Sep 30, 2024
@Dr-Blank Dr-Blank changed the title Fix shake detector not working in backgroud Fix Shake Detector not working when app in background Sep 30, 2024
@Dr-Blank Dr-Blank merged commit 67d6c92 into main Sep 30, 2024
2 checks passed
@Dr-Blank Dr-Blank deleted the fix-shakedetector-not-working-in-backgroud branch September 30, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant