Skip to content

Persistence package causes double unread count to appear in scroll to bottom button and no unread count on the back button when opened from message notification #2202

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

Open
1 task done
Jonny1987 opened this issue Apr 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Jonny1987
Copy link

Jonny1987 commented Apr 9, 2025

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

Android

What version are you using?

9.7.0

What happened?

Clicking on the notification of a received message while app is in background but not terminated causes scroll to bottom button on channel page to show double the unread count and the back button to show no unread message count.

This issue doesn't happen when app is terminated or when in foreground

az_recorder_20250409_193954.mp4

Steps to reproduce

1. Setup up persistence
2. Put phone in background
3. Send message
4. Click on notification

Supporting info to reproduce

No response

Relevant log output

Flutter analyze output

No issues found!

Flutter doctor output

[✓] Flutter (Channel stable, 3.27.4, on Ubuntu 22.04.5 LTS 6.8.0-57-generic, locale en_US.UTF-8)
    • Flutter version 3.27.4 on channel stable at /home/john/fvm/versions/3.27.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d8a9f9a52e (10 weeks ago), 2025-01-31 16:07:18 -0500
    • Engine revision 82bd5b7209
    • Dart version 3.6.2
    • DevTools version 2.40.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4)
    • Android SDK at /home/john/Android/Sdk
    • Platform android-35, build-tools 35.0.0-rc4
    • Java binary at: /opt/android-studio/jbr/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1.1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[✓] Android Studio (version 2024.1)
    • Android Studio at /opt/android-studio
    • Flutter plugin version 83.0.2
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.10+0-17.0.10b1087.21-11609105)

[✓] VS Code (version 1.96.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.102.0

[✓] Connected device (3 available)
    • Pixel 7a (mobile) • 43201JEHN00588 • android-arm64  • Android 14 (API 34)
    • Linux (desktop)   • linux          • linux-x64      • Ubuntu 22.04.5 LTS 6.8.0-57-generic
    • Chrome (web)      • chrome         • web-javascript • Google Chrome 134.0.6998.35

[✓] Network resources
    • All expected network resources are available.

• No issues found!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Jonny1987 Jonny1987 added the bug Something isn't working label Apr 9, 2025
@Jonny1987 Jonny1987 changed the title Persistence package causing double unread count to appear in scroll to bottom button and no unread count on the back button when opened from message notification Persistence package causes double unread count to appear in scroll to bottom button and no unread count on the back button when opened from message notification while app is in background but not terminated Apr 9, 2025
@Jonny1987 Jonny1987 changed the title Persistence package causes double unread count to appear in scroll to bottom button and no unread count on the back button when opened from message notification while app is in background but not terminated Persistence package causes double unread count to appear in scroll to bottom button and no unread count on the back button when opened from message notification Apr 9, 2025
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

No branches or pull requests

1 participant