Skip to content

[Bug]: Notification inaccuracies, broken badges, backup/blocklist restore issues, and mixed UI #604

Backlog

Description

@ramonyouc3540

What happened
I am experiencing several issues in v1.0.34:

  1. Notification issues: The unread counter on the app icon is inaccurate. It sometimes disappears by itself, doesn't differentiate between old and new unread messages, and only counts newly arrived messages. Also, the "reply reminder" feature sends notifications for very old messages (e.g., from 3 months ago). Clearing notifications from the phone's notification shade deletes them from the app too.
  2. Backup/Blocklist issues: After restoring a backup (with 900 messages), all messages were marked as unread. The counters were wrong (e.g., showing "2" for 2 messages and "80" for 80 messages). All 248 numbers from my Blocklist were moved to the Inbox, and the Blocklist itself became empty. I had to block all 248 numbers manually again. The Trash was also empty.
  3. UI issues: The mixture of old and new Settings menus is confusing.

What you expected

  1. The badge counter should only show the total number of unread messages and stay until read. Reply reminders should not trigger for old messages.
  2. Restoring a backup should keep blocked numbers in the Blocklist and restore deleted messages to the Trash.
  3. The Settings UI should be consistent (either all old or all new).

Steps to reproduce

  1. Install v1.0.34 and restore a backup file.
  2. Observe the badge counters on the app icon and per chat.
  3. Check the Blocklist and Trash folders.
  4. Wait for the app to show reply reminders for old messages.
Screenshot_۲۰۲۶۱۲۰۲_۲۲۵۸۵۱_Messages Screenshot_۲۰۲۶۱۲۰۱_۱۷۲۵۰۴_Messages Screenshot_۲۰۲۶۱۲۰۲_۲۳۰۹۳۰_Messages Screenshot_۲۰۲۶۱۲۰۲_۲۳۰۴۵۷_Photo Editor Screenshot_۲۰۲۶۱۲۰۲_۲۲۵۸۵۴_One UI Home Screenshot_۲۰۲۶۱۲۰۳_۰۰۵۰۳۱_Messages Screenshot_۲۰۲۶۱۲۰۳_۰۰۴۹۵۲_Messages

Activity

  1. added
    bug
    on Dec 2, 2026
  2. github-actions commented on Dec 2, 2026

    @github-actions
    Contributor

    This is an automatic reply. A person reads every issue, and the notes below are
    the same for everyone.

    If something with MMS, pictures, voice notes or group chats is broken, I need
    the app's own log, because the cause is not visible from outside.

    1. Send or receive the message that fails, and let it fail.
    2. Open Settings → Advanced → Diagnostics.
    3. Tap Copy, and paste it here inside a code block.

    The log shows what your carrier answered, where the download stopped, and what
    your carrier allows. It only keeps the most recent activity, and restarting the
    app clears it, so copy it straight after the failure. A screenshot helps me see
    the problem, but I cannot search text in a picture, so the copy is what matters.

    If something else is broken, please add:

    • the app version, from Settings → About
    • your Android version and phone model
    • whether you installed from F-Droid or GitHub
    • the steps that lead to the problem
    • what you expected, and what happened instead

    Screenshots are welcome for anything you can see.

    If this is about right-to-left text or a language — a mirrored layout, Arabic,
    Persian, Urdu, Hebrew or Kurdish letters, or a wrong or missing translation —
    please post it in Discussions instead, where these reports are kept together:

    https://github.com/an1ndra/Messages/discussions/categories/rtl-languages

    That page also lists what to include.

    If this is a feature only you need, the honest position: there is about a
    30% chance I build it and a 70% chance I close it as not planned. If Google
    Messages already does it, say so, and it goes on the list I work through,
    because matching Google Messages is the one case where I add something new.

    Whatever the report is, these four things make it answerable: what happened,
    what you expected, the steps, and the version.

  3. ramonyouc3540 commented on Dec 3, 2026

    @ramonyouc3540
    Author

    Here is more specific behavior for the badge bug:

    When I swipe down the notification shade and clear ALL notifications from all apps, the app icon badge for Messages resets to zero.

    However, the actual unread count is still there inside the app (the inbox and individual chats still show the correct unread numbers). This means clearing system notifications should not reset the app's unread counter. The badge should stay on the app icon until I actually read the messages inside the app.

  4. ramonyouc3540 commented on Dec 3, 2026

    @ramonyouc3540
    Author

    Hi an1ndra,

    Honestly, all the notifications and messages are mixed up. I am randomly getting notifications for messages from years ago, and the old SMS messages from years ago are also showing up in the Inbox as new unread messages with a new checkmark.

    I am trying to revert back to version 1.0.33.

    Are you receiving my reports? Please just say yes or let me know, so I know you are seeing them.Screenshot_۲۰۲۶۱۲۰۳_۱۹۱۱۵۴_One UI Home.jpg

  5. added a commit that references this issue on Dec 3, 2026
  6. an1ndra commented on Dec 3, 2026

    @an1ndra
    Owner

    @ramonyouc3540

    Mixed old/new Settings. Please use the redesigned interface only: Settings → Advanced → Redesigned interface on. The old screens are kept only as a compatibility option, and the newer pages were never written for them, so leaving it off will always look mixed.

    Clearing the shade resets the badge. That is Android's behaviour, not the app's. The icon badge is the launcher's sum of the app's live notifications; clearing them clears the badge. Google Messages does the same, and the unread counts inside the app stay correct.

    Clearing notifications deletes messages. I could not reproduce this. After "Clear all" the notification is removed, but the messages and their unread counts stay in the app. If you see a message actually disappear, send the Diagnostics copy right after it happens and I will look at that exact case.

    The restore, blocklist and reply-nudge fixes from this report are already merged and will be in the next build.

  7. ramonyouc3540 commented on Dec 3, 2026

    @ramonyouc3540
    Author

    Hi an1ndra,

    Regarding the Mixed UI: You need to clearly document which settings are active and which are disabled in this version. I cannot guess which part of the settings will not work with the current version. If some options are deprecated, please hide them or inform the user.

    Regarding the "reply nudge" (notifications): This is not standard behavior. The app is randomly bringing up very old messages from 2023 and 2024 and showing them to me as new notifications in large numbers. This is clearly a bug in the app's logic.

    Regarding the Badge Counter: I am NOT clearing the notifications from the shade. The counter resets to zero by itself just by closing the app or after a short time. I have used many apps, and none of them behave like this.

    Important Context: I have two phones, and my customers (who use different phone models) also report the exact same issues to me. When multiple users on different devices experience the same problem, it is definitely an app-level bug, not an Android system behavior.

    Please investigate this properly.

    First, I tried to revert back to version 1.0.33. I tried to restore my backup file, but it didn't accept it. It seems the backup only works with version 1.0.34. However, I also had an older backup from v1.0.33, but it failed to restore on v1.0.33 as well.

    Why would a backup file from just 5 days ago (created by this exact app) be rejected by the app? I have lost most of my messages, and some of them were extremely important.

    For now, I am forced to switch back to the default Samsung app, but this means I will lose a lot of my important messages.

    Please look into this.Screenshot_۲۰۲۶۱۲۰۳_۲۲۵۴۳۳_Messages.jpg
    Screenshot_۲۰۲۶۱۲۰۳_۲۲۵۴۱۹_Messages.jpg

  8. an1ndra commented on Dec 3, 2026

    @an1ndra
    Owner

    Regarding the "reply nudge" (notifications): This is not standard behavior. The app is randomly bringing up very old messages from 2023 and 2024 and showing them to me as new notifications in large numbers. This is clearly a bug in the app's logic.

    This is actually a feature and this is doing unwanted behaviour in your case, Google Message had same behaviour, removed it.

    Which file you have used for backup restore?
    Check Import & export lοg
    What is showing there?

    Please do not delete anything in Documents/Messages. The backup file is still there — uninstalling the app does not remove it.

    1. Install version 1.0.34 again. Do not install 1.0.33 — it is older than your backup and cannot open it.
    2. Open the app and allow the SMS permissions. If it asks to be your SMS app, allow that too.
    3. Go to Settings → Import messages.
    4. Choose the first option: “Messages (.enc)”. Do not choose “SMS Import / Export” or “QUIK” — those cannot read this backup, and they are what show “No messages found in that backup”.
    5. Pick your backup file. It is usually in Documents → Messages, named messages_backup_....enc (or .db).
    6. Enter the PIN you set when you made the backup.
    7. Choose “Merge with existing messages”. Do not choose “Restore (replace all)”.
    8. Wait for it to finish. Your messages will come back.

    If you cannot find the backup file:

    • Open the phone’s Files app → Documents → Messages, and look for messages_backup_...enc or messages_backup_...db.
    • If it is there, repeat from step 3.
    • If it is gone, reinstall the app and set it as your default SMS app. The phone’s own SMS storage may still have the messages, and the app will load them.
  9. an1ndra commented on Dec 3, 2026

    @an1ndra
    Owner

    You can decrypt the backup on the phone itself, without this app. It needs one free app, Termux, and a small script. I tested this on Android 12 with this kind of .enc backup: it decrypted 239 messages and wrote a CSV.

    Before you start: this works only if the backup asks for a PIN. If it is a very old backup that never asked for a PIN, it is locked to the old app installation and cannot be decrypted on the phone or anywhere else.

    1. Install Termux

    Install Termux from F-Droid or GitHub:

    https://f-droid.org/packages/com.termux/
    https://github.com/termux/termux-app

    Do not use the Play Store version; it is outdated.

    2. Set it up

    Open Termux and paste these lines one at a time, pressing Enter after each:

    pkg update -y
    pkg install -y python python-cryptography
    termux-setup-storage

    When Android asks for storage permission, tap Allow.

    3. Put the script on the phone

    Save the script at the bottom of this reply as messages_backup_tool.py in your phone's Downloads folder.

    4. Find your backup

    Open Files → Documents → Messages. The backup looks like:

    messages_backup_1234567890.enc
    

    Note the exact file name.

    5. Decrypt it

    In Termux, run this, replacing the file name with yours:

    python ~/storage/downloads/messages_backup_tool.py \
      /sdcard/Documents/Messages/YOUR_BACKUP.enc

    Type your PIN and press Enter. Nothing appears while you type — that is normal.

    It prints your messages as:

    date | number | message
    

    To also save a spreadsheet:

    python ~/storage/downloads/messages_backup_tool.py \
      /sdcard/Documents/Messages/YOUR_BACKUP.enc 1234 \
      ~/storage/downloads/messages.csv

    Then open messages.csv with any spreadsheet app.

    If the file is .db

    No PIN is needed. Pass - as the PIN:

    python ~/storage/downloads/messages_backup_tool.py \
      /sdcard/Documents/Messages/YOUR_BACKUP.db - \
      ~/storage/downloads/messages.csv

    The script

    Show messages_backup_tool.py
    #!/usr/bin/env python3
    """Read a Messages backup without the Messages app.
    
    Usage: python3 messages_backup_tool.py <backup.enc|backup.db> [PIN|-] [out.csv]
    Requires: pip install cryptography
    """
    import csv, getpass, hashlib, os, sqlite3, sys, tempfile
    
    MAGIC = b"MSP\x01"; SALT_LEN = 16; IV_LEN = 12; ITERATIONS = 120_000
    
    
    def decrypt(data, pin):
        if data[:4] != MAGIC:
            return data
        from cryptography.hazmat.primitives.ciphers.aead import AESGCM
        salt = data[4:4 + SALT_LEN]
        iv = data[4 + SALT_LEN:4 + SALT_LEN + IV_LEN]
        ciphertext = data[4 + SALT_LEN + IV_LEN:]
        key = hashlib.pbkdf2_hmac("sha256", pin.encode(), salt, ITERATIONS, dklen=32)
        return AESGCM(key).decrypt(iv, ciphertext, None)
    
    
    def rows_from(path):
        db = sqlite3.connect(path)
        try:
            return db.execute("""
                SELECT datetime(m.timestamp/1000,'unixepoch','localtime'),
                       CASE WHEN m.is_me=1 THEN 'Me'
                            ELSE (SELECT address FROM conversations WHERE id=m.conversation_id)
                       END,
                       m.body
                FROM messages m WHERE m.deleted_at=0 ORDER BY m.timestamp
            """).fetchall()
        finally:
            db.close()
    
    
    def main():
        if len(sys.argv) < 2:
            print(__doc__); return 2
        src = sys.argv[1]
        pin = sys.argv[2] if len(sys.argv) > 2 else None
        out = sys.argv[3] if len(sys.argv) > 3 else None
        data = open(src, "rb").read()
        if data[:4] == MAGIC:
            pin = pin or getpass.getpass("Backup PIN: ")
            try:
                data = decrypt(data, pin)
            except Exception:
                print("Wrong PIN, or the file is damaged."); return 1
        fd, tmp = tempfile.mkstemp(suffix=".db")
        try:
            with os.fdopen(fd, "wb") as f:
                f.write(data)
            rows = rows_from(tmp)
            for t, s, b in rows:
                print(f"{t} | {s} | {b}")
            if out:
                with open(out, "w", newline="", encoding="utf-8") as f:
                    w = csv.writer(f)
                    w.writerow(["time", "from_or_to", "body"])
                    w.writerows(rows)
                print(f"\nWrote {out} ({len(rows)} messages)")
        finally:
            os.unlink(tmp)
        return 0
    
    
    if __name__ == "__main__":
        raise SystemExit(main())

    Easier route

    If this is too much, install 1.0.34, then:

    Settings → Import messages → Messages (.enc) → Merge with existing messages

    That does the same decryption and puts the messages back into the app and the phone.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions