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

notification sound stutters on Android 8.0 and 8.1 #862

Open
1fish2 opened this issue Apr 1, 2018 · 2 comments
Open

notification sound stutters on Android 8.0 and 8.1 #862

1fish2 opened this issue Apr 1, 2018 · 2 comments
Labels

Comments

@1fish2
Copy link
Contributor

1fish2 commented Apr 1, 2018

The app's notification sound frequently stutters and restarts midstream, but only on Android 8.0 and 8.1. This happens in the emulator and actual hardware.

Aha! After investigating, this seems to happen when GCMMessageHandler#handleMessage builds a notification and then a summary notification.

So starting from no TBA notifications in the shade, the first one will sound right and (if nobody dismisses it) the next one will play stuttered.

@1fish2
Copy link
Contributor Author

1fish2 commented Apr 1, 2018

The fix is to call builder.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY) before building a notification that will immediately become part of a group summary. But this new method is in supportLibVersion 26.1.0 and compileSdkVersion 26, and calling it requires restructuring the code to push a NotificationCompat.Builder around rather than a built Notification.

I'll add it to PR #861

@1fish2
Copy link
Contributor Author

1fish2 commented Apr 2, 2018

PR #861 ought to fix this bug.

@bherbst bherbst closed this as completed Nov 26, 2024
@bherbst bherbst reopened this Nov 26, 2024
@bherbst bherbst added the bug label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants